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=792
1.8
Ian Oxley 2012-09-11 13:49:00 +01:00 committed by Ariya Hidayat
parent ecda224233
commit 2662d5875b
1 changed files with 1 additions and 4 deletions

View File

@ -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(){