mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-01 00:25:15 +02:00
assertEvalEquals
This commit is contained in:
parent
33b92babc0
commit
c469368727
2 changed files with 5 additions and 11 deletions
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue