assertEvalEquals

This commit is contained in:
Peter Cottle 2015-03-23 20:40:24 -07:00
parent 33b92babc0
commit c469368727
2 changed files with 5 additions and 11 deletions

View file

@ -31,14 +31,10 @@ casper.start(
})
.wait(500)
.then(function() {
var locale = this.evaluate(function() {
return debug_Intl_getLocale();
});
// Successfully changed locale
this.test.assertEquals(
locale,
'ja'
);
this.test.assertEvalEquals(function() {
return debug_Intl_getLocale();
}, 'ja');
})
.then(CasperUtils.testDone);
}).run();

View file

@ -25,11 +25,9 @@ casper.start(
'div.modalTerminal'
]))
.then(function() {
var text = this.evaluate(function() {
this.test.assertEvalEquals(function() {
return document.querySelector('div.inside > div > p').innerText;
});
this.test.assertEquals(
text,
},
"Go ahead and try it out on your own! After this " +
"window closes, make two commits to complete the level"
);