소스 검색

Stub out test files for the toplevel menus.

Ian Rose 7 년 전
부모
커밋
df222135d8
6개의 변경된 파일258개의 추가작업 그리고 0개의 파일을 삭제
  1. 43 0
      test/src/mainmenu/edit.spec.ts
  2. 43 0
      test/src/mainmenu/file.spec.ts
  3. 43 0
      test/src/mainmenu/help.spec.ts
  4. 43 0
      test/src/mainmenu/kernel.spec.ts
  5. 43 0
      test/src/mainmenu/run.spec.ts
  6. 43 0
      test/src/mainmenu/view.spec.ts

+ 43 - 0
test/src/mainmenu/edit.spec.ts

@@ -0,0 +1,43 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+import expect = require('expect.js');
+
+import {
+  CommandRegistry
+} from '@phosphor/commands';
+
+import {
+  EditMenu, IEditMenu
+} from '@jupyterlab/mainmenu';
+
+
+describe('@jupyterlab/mainmenu', () => {
+
+  describe('EditMenu', () => {
+    
+    let commands: CommandRegistry;
+    let menu: EditMenu;
+
+    before(() => {
+      commands = new CommandRegistry();
+    });
+
+    beforeEach(() => {
+      menu = new EditMenu({ commands });
+    });
+
+    afterEach(() => {
+      menu.dispose();
+    });
+
+    describe('#constructor()', () => {
+      it('should construct a new edit menu', () => {
+        expect(menu).to.be.an(EditMenu);
+      });
+
+    });
+
+  });
+
+});

+ 43 - 0
test/src/mainmenu/file.spec.ts

@@ -0,0 +1,43 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+import expect = require('expect.js');
+
+import {
+  CommandRegistry
+} from '@phosphor/commands';
+
+import {
+  FileMenu, IFileMenu
+} from '@jupyterlab/mainmenu';
+
+
+describe('@jupyterlab/mainmenu', () => {
+
+  describe('FileMenu', () => {
+    
+    let commands: CommandRegistry;
+    let menu: FileMenu;
+
+    before(() => {
+      commands = new CommandRegistry();
+    });
+
+    beforeEach(() => {
+      menu = new FileMenu({ commands });
+    });
+
+    afterEach(() => {
+      menu.dispose();
+    });
+
+    describe('#constructor()', () => {
+      it('should construct a new file menu', () => {
+        expect(menu).to.be.an(FileMenu);
+      });
+
+    });
+
+  });
+
+});

+ 43 - 0
test/src/mainmenu/help.spec.ts

@@ -0,0 +1,43 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+import expect = require('expect.js');
+
+import {
+  CommandRegistry
+} from '@phosphor/commands';
+
+import {
+  HelpMenu, IHelpMenu
+} from '@jupyterlab/mainmenu';
+
+
+describe('@jupyterlab/mainmenu', () => {
+
+  describe('HelpMenu', () => {
+    
+    let commands: CommandRegistry;
+    let menu: HelpMenu;
+
+    before(() => {
+      commands = new CommandRegistry();
+    });
+
+    beforeEach(() => {
+      menu = new HelpMenu({ commands });
+    });
+
+    afterEach(() => {
+      menu.dispose();
+    });
+
+    describe('#constructor()', () => {
+      it('should construct a new help menu', () => {
+        expect(menu).to.be.an(HelpMenu);
+      });
+
+    });
+
+  });
+
+});

+ 43 - 0
test/src/mainmenu/kernel.spec.ts

@@ -0,0 +1,43 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+import expect = require('expect.js');
+
+import {
+  CommandRegistry
+} from '@phosphor/commands';
+
+import {
+  KernelMenu, IKernelMenu
+} from '@jupyterlab/mainmenu';
+
+
+describe('@jupyterlab/mainmenu', () => {
+
+  describe('KernelMenu', () => {
+    
+    let commands: CommandRegistry;
+    let menu: KernelMenu;
+
+    before(() => {
+      commands = new CommandRegistry();
+    });
+
+    beforeEach(() => {
+      menu = new KernelMenu({ commands });
+    });
+
+    afterEach(() => {
+      menu.dispose();
+    });
+
+    describe('#constructor()', () => {
+      it('should construct a new kernel menu', () => {
+        expect(menu).to.be.an(KernelMenu);
+      });
+
+    });
+
+  });
+
+});

+ 43 - 0
test/src/mainmenu/run.spec.ts

@@ -0,0 +1,43 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+import expect = require('expect.js');
+
+import {
+  CommandRegistry
+} from '@phosphor/commands';
+
+import {
+  RunMenu, IRunMenu
+} from '@jupyterlab/mainmenu';
+
+
+describe('@jupyterlab/mainmenu', () => {
+
+  describe('RunMenu', () => {
+    
+    let commands: CommandRegistry;
+    let menu: RunMenu;
+
+    before(() => {
+      commands = new CommandRegistry();
+    });
+
+    beforeEach(() => {
+      menu = new RunMenu({ commands });
+    });
+
+    afterEach(() => {
+      menu.dispose();
+    });
+
+    describe('#constructor()', () => {
+      it('should construct a new run menu', () => {
+        expect(menu).to.be.an(RunMenu);
+      });
+
+    });
+
+  });
+
+});

+ 43 - 0
test/src/mainmenu/view.spec.ts

@@ -0,0 +1,43 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+import expect = require('expect.js');
+
+import {
+  CommandRegistry
+} from '@phosphor/commands';
+
+import {
+  ViewMenu, IViewMenu
+} from '@jupyterlab/mainmenu';
+
+
+describe('@jupyterlab/mainmenu', () => {
+
+  describe('ViewMenu', () => {
+    
+    let commands: CommandRegistry;
+    let menu: ViewMenu;
+
+    before(() => {
+      commands = new CommandRegistry();
+    });
+
+    beforeEach(() => {
+      menu = new ViewMenu({ commands });
+    });
+
+    afterEach(() => {
+      menu.dispose();
+    });
+
+    describe('#constructor()', () => {
+      it('should construct a new view menu', () => {
+        expect(menu).to.be.an(ViewMenu);
+      });
+
+    });
+
+  });
+
+});