mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
1380e46c34
* unit test for ts * Fix ts-jest warnings * Remove puppeteer for now * fix physics define and jest config for windows * Replace Node ref with INode ref * Fix ci issue * Fix * tweak * tweak * Fix vscode launcher * now physics framework export all physics component (#28) * tweaks
32 lines
689 B
JavaScript
32 lines
689 B
JavaScript
var Ipc = require('ipc');
|
|
|
|
describe('test cocos', function () {
|
|
var win;
|
|
|
|
// close window afterward
|
|
after(function ( done ) {
|
|
win.close();
|
|
win.nativeWin.on('closed', function () {
|
|
win.dispose();
|
|
done();
|
|
});
|
|
});
|
|
|
|
//
|
|
it('running on page-level', function( done ) {
|
|
this.timeout(0);
|
|
Ipc.on('runner:end', function () {
|
|
done();
|
|
});
|
|
|
|
win = new Editor.Window('main', {
|
|
title: 'Test Cocos',
|
|
width: 800,
|
|
height: 800,
|
|
show: true,
|
|
resizable: false,
|
|
});
|
|
win.load('unpack://engine/test/page.html');
|
|
});
|
|
});
|