Permalink
Browse files

Wait for async processes

  • Loading branch information...
mynyml committed Mar 31, 2010
1 parent a87ca58 commit 07ac3bb1f3ee7841fc9a720b08ac98085912f7b1
Showing with 4,402 additions and 0 deletions.
  1. +1 −0 Manifest
  2. +1 −0 lib/holygrail.rb
  3. +4,376 −0 public/javascripts/jquery.js
  4. +23 −0 test/integration_test.rb
  5. +1 −0 test/test_helper.rb
View
@@ -8,6 +8,7 @@ holygrail.gemspec
lib/holygrail.rb
public/javascripts/application.js
public/javascripts/foo.js
+public/javascripts/jquery.js
rails/init.rb
specs.watchr
test/functional_test.rb
View
@@ -55,6 +55,7 @@ def process(*args) #:nodoc:
def js(code)
XhrProxy.context = self
@__page ||= Harmony::Page.new(XHR_MOCK_SCRIPT + rewrite_script_paths(@response.body.to_s))
+ Harmony::Page::Window::BASE_RUNTIME.wait
@__page.execute_js(code)
end
alias :execute_javascript :js
Oops, something went wrong.

0 comments on commit 07ac3bb

Please sign in to comment.