mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<!-- editor-framework environment -->
|
|
<script type="text/javascript" src="editor-framework://lib/renderer/page-init.js"></script>
|
|
<script type="text/javascript" src="app://bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
|
|
<link rel="import" href="app://bower_components/polymer/polymer.html">
|
|
<link rel="import" href="app://bower_components/iron-flex-layout/iron-flex-layout.html">
|
|
<link rel="stylesheet" href="app://bower_components/fontawesome/css/font-awesome.min.css">
|
|
|
|
<!-- 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="unpack://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="unpack://engine/test/page/index.js"></script>
|
|
</body>
|
|
</html>
|