mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<!-- editor-framework environment -->
|
|
<script type="text/javascript" src="editor-framework://lib/renderer/page-init.js"></script>
|
|
<link rel="import" href="editor-framework://lib/renderer/ui/ui.html">
|
|
|
|
<!-- test-framework environment -->
|
|
<script type="text/javascript" src="app://bower_components/mocha/mocha.js"></script>
|
|
<script type="text/javascript" src="app://bower_components/chai/chai.js" ></script>
|
|
|
|
<!-- runner -->
|
|
<script type="text/javascript" src="editor-framework://lib/renderer/test-runner.js"></script>
|
|
|
|
<script>
|
|
document.ccConfig = {
|
|
"renderMode" : 2 // 0: auto, 1:Canvas, 2:Webgl
|
|
};
|
|
</script>
|
|
|
|
<!-- cocos html5 -->
|
|
<script type="text/javascript" src="app://engine/bin/cocos2d-js.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Testing Cocos2d-JS</h1>
|
|
<canvas id="gameCanvas" width="400" height="400"></canvas>
|
|
|
|
<script type="text/javascript" src="app://engine/test/page/index.js"></script>
|
|
</body>
|
|
</html>
|