Browse Source

Update tests.

A. Darian 8 years ago
parent
commit
cbe41f2a7e

+ 2 - 0
test/src/notebook/completion/handler.spec.ts

@@ -306,6 +306,7 @@ describe('notebook/completion/handler', () => {
           chHeight: 0,
           chWidth: 0,
           line: 0,
+          position: 0,
           coords: null,
           oldValue: 'fo',
           newValue: 'foo'
@@ -328,6 +329,7 @@ describe('notebook/completion/handler', () => {
           chHeight: 0,
           chWidth: 0,
           line: 0,
+          position: 0,
           coords: null,
           oldValue: 'fo',
           newValue: 'foo'

+ 42 - 7
test/src/notebook/completion/model.spec.ts

@@ -115,7 +115,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 0, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 0,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 0,
+          coords, oldValue, newValue
         };
         let listener = (sender: any, args: void) => { called++; };
         model.stateChanged.connect(listener);
@@ -147,7 +152,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 0, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 0,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 0,
+          coords, oldValue, newValue
         };
         let listener = (sender: any, args: void) => { called++; };
         model.stateChanged.connect(listener);
@@ -266,7 +276,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 0, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 0,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 0,
+          coords, oldValue, newValue
         };
         model.current = change;
         expect(model.current).to.be(null);
@@ -293,7 +308,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 0, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 0,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 0,
+          coords, oldValue, newValue
         };
         model.original = request;
         model.current = change;
@@ -320,7 +340,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 0, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 0,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 0,
+          coords, oldValue, newValue
         };
         model.original = request;
         model.cursor = cursor;
@@ -412,7 +437,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 4, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 4,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 4,
+          coords, oldValue, newValue
         };
         model.original = request;
         model.cursor = cursor;
@@ -437,7 +467,12 @@ describe('notebook/completion/model', () => {
           currentValue: currentValue
         };
         let change: ITextChange = {
-          ch: 4, chHeight: 0, chWidth: 0, line: 0, coords, oldValue, newValue
+          ch: 4,
+          chHeight: 0,
+          chWidth: 0,
+          line: 0,
+          position: 0,
+          coords, oldValue, newValue
         };
         model.original = request;
         expect(model.original).to.be.ok();