| OLD | NEW |
| (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> |
| OLD | NEW |