fix tests

This commit is contained in:
nightwing 2013-06-11 14:57:31 +04:00
commit 7df0b59c13
2 changed files with 4 additions and 3 deletions

View file

@ -74,7 +74,7 @@ module.exports = {
assert.equal(error.text, "Unclosed string."); assert.equal(error.text, "Unclosed string.");
assert.equal(error.type, "error"); assert.equal(error.type, "error");
assert.equal(error.row, 0); assert.equal(error.row, 0);
assert.equal(error.column, 0); assert.equal(error.column, 2);
}, },
"test another invalid string": function() { "test another invalid string": function() {
@ -86,7 +86,7 @@ module.exports = {
assert.equal(error.text, "Unclosed string."); assert.equal(error.text, "Unclosed string.");
assert.equal(error.type, "error"); assert.equal(error.type, "error");
assert.equal(error.row, 0); assert.equal(error.row, 0);
assert.equal(error.column, 3); assert.equal(error.column, 4);
} }
}; };

View file

@ -116,6 +116,7 @@ var WorkerClient = function(topLevelNamespaces, mod, classname) {
this.terminate = function() { this.terminate = function() {
this._emit("terminate", {}); this._emit("terminate", {});
this.deltaQueue = null;
this.$worker.terminate(); this.$worker.terminate();
this.$worker = null; this.$worker = null;
this.$doc.removeEventListener("change", this.changeListener); this.$doc.removeEventListener("change", this.changeListener);
@ -220,6 +221,6 @@ var UIWorkerClient = function(topLevelNamespaces, mod, classname) {
UIWorkerClient.prototype = WorkerClient.prototype; UIWorkerClient.prototype = WorkerClient.prototype;
exports.UIWorkerClient = UIWorkerClient; exports.UIWorkerClient = UIWorkerClient;
exports.WorkerClient = UIWorkerClient; exports.WorkerClient = WorkerClient;
}); });