OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <meta charset=utf-8> |
| 3 <title>Storage API IDL tests</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 <script> |
| 10 'use strict'; |
| 11 promise_test(t => { |
| 12 return fetch('interfaces.idl') |
| 13 .then(response => response.text()) |
| 14 .then(idls => { |
| 15 var idl_array = new IdlArray(); |
| 16 |
| 17 idl_array.add_untested_idls('interface Navigator {};'); |
| 18 idl_array.add_untested_idls('[Exposed=Worker] interface WorkerNavigator {}
;'); |
| 19 |
| 20 idl_array.add_idls(idls); |
| 21 |
| 22 idl_array.add_objects({ |
| 23 StorageManager: ['navigator.storage'] |
| 24 }); |
| 25 |
| 26 idl_array.test(); |
| 27 t.done(); |
| 28 }); |
| 29 }, 'Storage API IDL test'); |
| 30 </script> |
OLD | NEW |