fix tests
This commit is contained in:
parent
2a8619e7f5
commit
1a94ace704
2 changed files with 2 additions and 3 deletions
|
|
@ -79,7 +79,6 @@ oop.inherits(JavaScriptWorker, Mirror);
|
||||||
this.options = options || {
|
this.options = options || {
|
||||||
// undef: true,
|
// undef: true,
|
||||||
// unused: true,
|
// unused: true,
|
||||||
es5: true,
|
|
||||||
esnext: true,
|
esnext: true,
|
||||||
moz: true,
|
moz: true,
|
||||||
devel: true,
|
devel: true,
|
||||||
|
|
|
||||||
|
|
@ -91,11 +91,11 @@ module.exports = {
|
||||||
|
|
||||||
"test for each": function() {
|
"test for each": function() {
|
||||||
var worker = new JavaScriptWorker(this.sender);
|
var worker = new JavaScriptWorker(this.sender);
|
||||||
worker.setValue("for each(var i in x)'");
|
worker.setValue("for each(var i in x)");
|
||||||
worker.deferredUpdate.call();
|
worker.deferredUpdate.call();
|
||||||
|
|
||||||
var error = this.sender.events[0][1][0];
|
var error = this.sender.events[0][1][0];
|
||||||
assert.equal(error.text, "Expected '(' and instead saw 'each'.");
|
assert.equal(error.text, "Unexpected early end of program.");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue