forked from google/model-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
57 lines (48 loc) · 2.31 KB
/
test.html
File metadata and controls
57 lines (48 loc) · 2.31 KB
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
48
49
50
51
52
53
54
55
56
57
<!--
/*
* Copyright 2018 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title><model-viewer> Unit Tests</title>
<!-- The following libraries and polyfills are recommended to maximize browser support -->
<!-- Include prismatic.js for Magic Leap support: -->
<!--<script src="../node_modules/@magicleap/prismatic/prismatic.min.js"></script>-->
<!-- Web Components polyfill is required to support Edge and Firefox < 63: -->
<script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<!-- Intersection Observer polyfill is required for Safari and IE11 -->
<script src="./node_modules/intersection-observer/intersection-observer.js"></script>
<script>
// NOTE: This is needed in tests so that we don't have to manually trigger
// the IntersectionObserver polyfill in Safari. Ordinarily, it would be
// triggered by a resize or scroll event.
// @see https://github.com/w3c/IntersectionObserver/tree/master/polyfill#configuring-the-polyfill
if ('POLL_INTERVAL' in IntersectionObserver.prototype) {
IntersectionObserver.prototype.POLL_INTERVAL = 100;
}
</script>
<!-- Resize Observer polyfill is required for non-Chrome browsers: -->
<script src="./node_modules/resize-observer-polyfill/dist/ResizeObserver.js"></script>
<!-- Fullscreen polyfill is required to support all stable browsers: -->
<script src="./node_modules/fullscreen-polyfill/dist/fullscreen.polyfill.js"></script>
<script src="./node_modules/web-component-tester/browser.js"></script>
</head>
<body>
<script type="module" src="./dist/unit-tests.js"></script>
</body>
</html>