Files
cocos4/tests/page.js
T
pandamicro 1380e46c34 Unittest (#4973)
* 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
2019-07-25 17:15:20 +08:00

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');
});
});