blob: 2683aae9cb6c5f48083159b67d18c6dedb11b481 [file] [log] [blame]
Aryeh Gregor05d5d1d2017-08-20 14:48:221<!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";
12var idlArray = new IdlArray();
13
14function 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
24promise_test(function() {
Luke Bjerringb23f2ac2018-06-28 00:34:1825 return fetch("/interfaces/WebIDL.idl").then(response => response.text())
Aryeh Gregor05d5d1d2017-08-20 14:48:2226 .then(doTest);
27}, "Test driver");
28</script>