Revision fced01876b48e034b64d9dad6de14d1bdeba3cc0 authored by Daniel Cheng on 12 April 2018, 12:08:45 UTC, committed by Chromium WPT Sync on 12 April 2018, 12:08:45 UTC
Change-Id: I1e66f2cdc50be889b697b54401be6352607fa649 Reviewed-on: https://chromium-review.googlesource.com/1006528 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#550152}
1 parent 19a42b9
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>
Computing file changes ...