-
Notifications
You must be signed in to change notification settings - Fork 2k
/
test.html
47 lines (47 loc) · 1.43 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<!--
Copyright 2012 The Toolkitchen Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<html>
<head>
<title>Mocha Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- -->
<link rel="stylesheet" href="../third_party/mocha/mocha.css" />
<script src="../third_party/expect.js/expect.js"></script>
<script src="../third_party/mocha/mocha.js"></script>
<!-- -->
<script src="../../polyfills/Components/components-polyfill.js" shadow="shim"></script>
<link rel="components" href="g-foo.html">
<link rel="components" href="../src/g-icon.html">
<link rel="components" href="../src/g-selection.html">
<link rel="components" href="../src/g-selector.html">
<link rel="components" href="../src/g-togglebutton.html">
<style>
#work {
display: none;
}
</style>
</head>
<body>
<div id="mocha"></div>
<script>
mocha.setup({ui: 'tdd'});
</script>
<!-- -->
<div id="work"></div>
<script src="component.js"></script>
<script src="icon.js"></script>
<script src="selection.js"></script>
<script src="selector.js"></script>
<script src="togglebutton.js"></script>
<!-- -->
<script>
window.addEventListener('WebComponentsReady', function() {
mocha.run();
});
</script>
</body>
</html>