https://github.com/web-platform-tests/wpt
Revision bc7c640b39c4a9ba70e916f44271ea8edab6014e authored by Luke Bjerring on 28 March 2018, 22:30:58 UTC, committed by GitHub on 28 March 2018, 22:30:58 UTC
* Support partial dictionaries
1 parent d5fea75
Raw File
Tip revision: bc7c640b39c4a9ba70e916f44271ea8edab6014e authored by Luke Bjerring on 28 March 2018, 22:30:58 UTC
Support partial dictionaries (#10159)
Tip revision: bc7c640
interfaces.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Screen Orientation API IDL tests</title>
<link rel="help" href="https://w3c.github.io/screen-orientation/">
<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";

promise_test(async () => {
  const idl_array = new IdlArray();
  const dom_idl = await fetch("/interfaces/dom.idl").then(r => r.text());
  const screenorientation_idl = await fetch("/interfaces/screen-orientation.idl").then(r => r.text());

  idl_array.add_untested_idls(dom_idl);
  idl_array.add_untested_idls('interface EventHandler {};');
  idl_array.add_untested_idls('interface Screen {};');
  idl_array.add_idls(screenorientation_idl);

  idl_array.add_objects({
    Screen: ['screen'],
    ScreenOrientation: ['screen.orientation']
  });
  idl_array.test();
}, "Test IDL implementation of Screen Orientation API");
</script>
back to top