OLD | NEW |
(Empty) | |
| 1 'use strict'; |
| 2 |
| 3 importScripts('/resources/testharness.js'); |
| 4 importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js'); |
| 5 |
| 6 promise_test(t => { |
| 7 return fetch('interfaces.idl') |
| 8 .then(response => response.text()) |
| 9 .then(idls => { |
| 10 var idl_array = new IdlArray(); |
| 11 |
| 12 idl_array.add_untested_idls('interface Navigator {};'); |
| 13 idl_array.add_untested_idls('[Exposed=Worker] interface WorkerNavigator {}
;'); |
| 14 |
| 15 idl_array.add_idls(idls); |
| 16 |
| 17 idl_array.add_objects({ |
| 18 StorageManager: ['navigator.storage'] |
| 19 }); |
| 20 |
| 21 idl_array.test(); |
| 22 t.done(); |
| 23 }); |
| 24 }, 'Storage API IDL test'); |
| 25 |
| 26 done(); |
OLD | NEW |