mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
Automatic update from web-platform-testsConvert compat+console+fullscreen+storage+url+xhr to idl_test (#12405) Also add more objects in some of these tests. XHR will now be tested against workers as well, and local tested revealed a test will be failing due to an old TODO in Blink: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/xmlhttprequest/xml_http_request.idl?l=79&rcl=9c356a9697625b3c25856529908af0c3253dfa2c A failing test for that is good :) -- wpt-commits: 9786a4b1317c03b89ea3bf2e997f2e2b6a3690ae wpt-pr: 12405
17 lines
397 B
JavaScript
17 lines
397 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['storage'],
|
|
['html'],
|
|
idl_array => {
|
|
idl_array.add_objects({ StorageManager: ['navigator.storage'] });
|
|
if (self.Window) {
|
|
idl_array.add_objects({ Navigator: ['navigator'] });
|
|
} else {
|
|
idl_array.add_objects({ WorkerNavigator: ['navigator'] });
|
|
}
|
|
}
|
|
);
|