本文整理汇总了TypeScript中@jupyterlab/testutils.defaultRenderMime函数的典型用法代码示例。如果您正苦于以下问题:TypeScript defaultRenderMime函数的具体用法?TypeScript defaultRenderMime怎么用?TypeScript defaultRenderMime使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了defaultRenderMime函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(() => {
r = defaultRenderMime();
});
示例2: defaultRenderMime
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { editorServices } from '@jupyterlab/codemirror';
import { CodeConsole, ConsolePanel } from '@jupyterlab/console';
import { defaultRenderMime } from '@jupyterlab/testutils';
export const editorFactory = editorServices.factoryService.newInlineEditor.bind(
editorServices.factoryService
);
export const mimeTypeService = editorServices.mimeTypeService;
export const rendermime = defaultRenderMime();
/**
* Create a console content factory.
*/
export function createConsoleFactory(): CodeConsole.IContentFactory {
return new CodeConsole.ContentFactory({ editorFactory });
}
/**
* Create a panel content factory.
*/
export function createConsolePanelFactory(): ConsolePanel.IContentFactory {
return new ConsolePanel.ContentFactory({ editorFactory });
}