mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +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
40 lines
1.0 KiB
HTML
40 lines
1.0 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="import" href="editor-framework://test/page-utils/page-runner.html">
|
|
|
|
<dom-module id="test-focusable">
|
|
<template>
|
|
<div id="focus"
|
|
on-focus="_onFocus"
|
|
on-blur="_onBlur"
|
|
>Test Focusable</div>
|
|
</template>
|
|
<script>
|
|
var TestFocusable = Polymer({
|
|
is: 'test-focusable',
|
|
behaviors: [Editor.UI.focusable],
|
|
ready: function () {
|
|
this._initFocusable(this.$.focus);
|
|
},
|
|
});
|
|
</script>
|
|
</dom-module>
|
|
</head>
|
|
<body>
|
|
<h1>Testing Behaviours</h1>
|
|
<div id="test-area"></div>
|
|
<script>
|
|
(function () {
|
|
var queries = Editor.argv;
|
|
var script = queries.scriptUrl;
|
|
if (!script) {
|
|
console.error('failed to get script to run');
|
|
return;
|
|
}
|
|
require(script);
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|