Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/webvr/idlharness.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/webvr/idlharness.html b/third_party/WebKit/LayoutTests/http/tests/webvr/idlharness.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8cf4daf946a8a00a24e2d6ea00f94776eb0c9fc5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/webvr/idlharness.html |
| @@ -0,0 +1,46 @@ |
| +<!doctype html> |
| +<html> |
| + <head> |
| + <meta charset=utf-8> |
| + <title>WebVR IDL test</title> |
| + <link rel="help" href="https://w3c.github.io/webvr/"> |
| + |
| + <script src=/js-test-resources/testharness.js></script> |
| + <script src=/js-test-resources/testharnessreport.js></script> |
| + <script src=/js-test-resources/WebIDLParser.js></script> |
| + <script src=/js-test-resources/idlharness.js></script> |
| + <script src=./util/fetch.js></script> |
|
Lei Lei
2016/12/20 06:43:29
IDL file can be within idlharness.html, so fetch.j
bsheedy
2016/12/20 18:19:08
Done.
|
| + </head> |
| + <body> |
| + <h1 class="instructions">Description</h1> |
| + <p class="instructions"> |
| + This test verifies that implementations of the WebVR API match its WebIDL definition. |
| + </p> |
| + |
| + <div id='log'></div> |
| + |
| + <script> |
| + setup( () => { |
| + fetch('WebVR.idl').then( (response) => { |
| + if (!response.ok) throw new Error('IDL fetch failed'); |
| + return response.text(); |
| + }).then( (idls) => { |
| + var idl_array = new IdlArray(); |
| + idl_array.add_untested_idls("[PrimaryGlobal] interface Window {};"); |
| + idl_array.add_untested_idls("interface Navigator {};"); |
| + idl_array.add_untested_idls("interface ArrayBuffer {};"); |
| + idl_array.add_untested_idls("interface HTMLMediaElement {};"); |
| + idl_array.add_untested_idls("interface Event {};"); |
| + idl_array.add_untested_idls("interface EventTarget {};"); |
| + idl_array.add_untested_idls("interface HTMLIFrameElement {};"); |
| + idl_array.add_untested_idls("interface Gamepad {};"); |
| + |
| + idl_array.add_idls(idls); |
| + |
| + idl_array.test(); |
| + done(); |
| + }); |
| + }, {explicit_done: true}); |
| + </script> |
| + </body> |
| +</html> |