Permalink
Browse files

Fix jasmine example terminating too early against jasmine 1.1.0.

The .finished-at element that was being checked for is present all
the time during the test run, so the waitFor call ended too early.

http://code.google.com/p/phantomjs/issues/detail?id=402
  • Loading branch information...
1 parent 61eb867 commit ddc0a7d62321d56bd9e5cb39e6c79edb07bb8259 @csmith csmith committed with ariya Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/run-jasmine.js
@@ -53,7 +53,7 @@ page.open(phantom.args[0], function(status){
} else {
waitFor(function(){
return page.evaluate(function(){
- if (document.body.querySelector('.finished-at')) {
+ if (document.body.querySelector('.runner .description')) {
return true;
}
return false;

0 comments on commit ddc0a7d

Please sign in to comment.