Przeglądaj źródła

clean up the test

Steven Silvester 8 lat temu
rodzic
commit
36586d2bd2
1 zmienionych plików z 1 dodań i 5 usunięć
  1. 1 5
      test/src/notebook/widget.spec.ts

+ 1 - 5
test/src/notebook/widget.spec.ts

@@ -947,12 +947,8 @@ describe('notebook/widget', () => {
         it('should set the mode to command', () => {
           simulate(widget.node, 'focus');
           widget.mode = 'edit';
-          let other = document.createElement('div');
-          simulate(widget.node, 'blur', { relatedTarget: other });
+          simulate(widget.node, 'blur');
           expect(widget.mode).to.be('command');
-          MessageLoop.sendMessage(widget, Widget.Msg.ActivateRequest);
-          expect(widget.mode).to.be('edit');
-          expect(widget.activeCell.editor.hasFocus()).to.be(true);
         });
 
       });