mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
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');
|
|
});
|
|
});
|