mirror of https://github.com/vitalif/phantomjs
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=4021.5
parent
61eb86782b
commit
ddc0a7d623
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue