| Aryeh Gregor | 05d5d1d | 2017-08-20 14:48:22 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <meta charset=utf-8> |
| 3 | <title>WebIDL IDL tests</title> |
| 4 | <script src=/resources/testharness.js></script> |
| 5 | <script src=/resources/testharnessreport.js></script> |
| 6 | <script src=/resources/WebIDLParser.js></script> |
| 7 | <script src=/resources/idlharness.js></script> |
| 8 | |
| 9 | <div id=log></div> |
| 10 | <script> |
| 11 | "use strict"; |
| 12 | var idlArray = new IdlArray(); |
| 13 | |
| 14 | function doTest(idl) { |
| 15 | idlArray.add_idls(idl); |
| 16 | idlArray.add_objects({ |
| 17 | DOMException: ['new DOMException()', |
| 18 | 'new DOMException("my message")', |
| 19 | 'new DOMException("my message", "myName")'], |
| 20 | }); |
| 21 | idlArray.test(); |
| 22 | } |
| 23 | |
| 24 | promise_test(function() { |
| Luke Bjerring | b23f2ac | 2018-06-28 00:34:18 | [diff] [blame] | 25 | return fetch("/interfaces/WebIDL.idl").then(response => response.text()) |
| Aryeh Gregor | 05d5d1d | 2017-08-20 14:48:22 | [diff] [blame] | 26 | .then(doTest); |
| 27 | }, "Test driver"); |
| 28 | </script> |