Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/idle-callbacks/idlharness.html

Issue 2477133002: Import wpt@306326cfe973b6c7019c50879ad03b02825c7539 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <meta charset=utf-8>
3 <title>idlharness test</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 <pre id='untested_idl' style='display:none'>
10 [PrimaryGlobal]
11 interface Window {
12 };
13 </pre>
14
15 <pre id='idl'>
16 partial interface Window {
17 unsigned long requestIdleCallback(IdleRequestCallback callback,
18 optional IdleRequestOptions options);
19 void cancelIdleCallback(unsigned long handle);
20 };
21
22 dictionary IdleRequestOptions {
23 unsigned long timeout;
24 };
25
26 callback IdleRequestCallback = void (IdleDeadline deadline);
27 </pre>
28 <script>
29 var idl_array = new IdlArray();
30 idl_array.add_untested_idls(document.getElementById("untested_idl").textConten t);
31 idl_array.add_idls(document.getElementById("idl").textContent);
32 idl_array.add_objects({Window: ["window"]});
33 idl_array.test();
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698