mirror of https://github.com/vitalif/phantomjs
Changed CSS selector used when checking for whether tests have finished.
When using the jasmine 1.2.0 standalone version, `.runner .description` doesn't seem to match any elements. I noticed pending tests can be found using the CSS selector `.symbolSummary .pending`, so changed the testFx callback to check that no elements are left matching this selector. http://code.google.com/p/phantomjs/issues/detail?id=7921.8
parent
ecda224233
commit
2662d5875b
|
@ -55,10 +55,7 @@ page.open(system.args[1], function(status){
|
|||
} else {
|
||||
waitFor(function(){
|
||||
return page.evaluate(function(){
|
||||
if (document.body.querySelector('.runner .description')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return document.body.querySelector('.symbolSummary .pending') === null
|
||||
});
|
||||
}, function(){
|
||||
page.evaluate(function(){
|
||||
|
|
Loading…
Reference in New Issue