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
1.5
Chris Smith 2012-02-22 17:26:44 +00:00 committed by Ariya Hidayat
parent 61eb86782b
commit ddc0a7d623
1 changed files with 1 additions and 1 deletions

View File

@ -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;