fix tests

This commit is contained in:
nightwing 2013-07-17 22:22:53 +04:00
commit 1a94ace704
2 changed files with 2 additions and 3 deletions

View file

@ -79,7 +79,6 @@ oop.inherits(JavaScriptWorker, Mirror);
this.options = options || {
// undef: true,
// unused: true,
es5: true,
esnext: true,
moz: true,
devel: true,

View file

@ -91,11 +91,11 @@ module.exports = {
"test for each": function() {
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();
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.");
}
};