fix tests
This commit is contained in:
parent
505847681d
commit
7df0b59c13
2 changed files with 4 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ module.exports = {
|
|||
assert.equal(error.text, "Unclosed string.");
|
||||
assert.equal(error.type, "error");
|
||||
assert.equal(error.row, 0);
|
||||
assert.equal(error.column, 0);
|
||||
assert.equal(error.column, 2);
|
||||
},
|
||||
|
||||
"test another invalid string": function() {
|
||||
|
|
@ -86,7 +86,7 @@ module.exports = {
|
|||
assert.equal(error.text, "Unclosed string.");
|
||||
assert.equal(error.type, "error");
|
||||
assert.equal(error.row, 0);
|
||||
assert.equal(error.column, 3);
|
||||
assert.equal(error.column, 4);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ var WorkerClient = function(topLevelNamespaces, mod, classname) {
|
|||
|
||||
this.terminate = function() {
|
||||
this._emit("terminate", {});
|
||||
this.deltaQueue = null;
|
||||
this.$worker.terminate();
|
||||
this.$worker = null;
|
||||
this.$doc.removeEventListener("change", this.changeListener);
|
||||
|
|
@ -220,6 +221,6 @@ var UIWorkerClient = function(topLevelNamespaces, mod, classname) {
|
|||
UIWorkerClient.prototype = WorkerClient.prototype;
|
||||
|
||||
exports.UIWorkerClient = UIWorkerClient;
|
||||
exports.WorkerClient = UIWorkerClient;
|
||||
exports.WorkerClient = WorkerClient;
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue