Revision 6dafebae502632ba0009440dc254ce6b9a10e84e authored by Mike Pennisi on 27 March 2018, 00:09:16 UTC, committed by Mike Pennisi on 27 March 2018, 00:45:48 UTC
Because a harness error may describe an unrecoverable browser state, the
browser should always be restarted when such an error is encountered
(even in the presence of the `--no-restart-on-unexpected` flag).
1 parent f497de8
Raw File
interfaces.html
<!DOCTYPE html>
<title>Fullscreen IDL tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
<script>
"use strict";

function doTest([dom, fullscreen]) {
  var idlArray = new IdlArray();
  idlArray.add_untested_idls(dom);
  idlArray.add_untested_idls('interface EventHandler {};');
  idlArray.add_idls(fullscreen);
  idlArray.add_objects({
    Document: ['new Document'],
    Element: ['document.createElementNS(null, "test")'],
  });
  idlArray.test();
}

function fetchText(url) {
  return fetch(url).then((response) => response.text());
}

promise_test(() => {
  return Promise.all(["/interfaces/dom.idl",
                      "/interfaces/fullscreen.idl"].map(fetchText))
    .then(doTest);
}, "Test driver");
</script>
back to top