mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed
This commit is contained in:
parent
4997ec26c2
commit
a5af9a106a
192 changed files with 3943 additions and 1927 deletions
|
@ -26,16 +26,24 @@
|
|||
idl_array.add_dependency_idls(dom);
|
||||
idl_array.add_dependency_idls(html);
|
||||
|
||||
window.presentation_request = new PresentationRequest("/presentation-api/receiving-ua/idlharness.html");
|
||||
window.presentation_request_urls = new PresentationRequest([
|
||||
"/presentation-api/receiving-ua/idlharness.html",
|
||||
"https://www.example.com/presentation.html"
|
||||
]);
|
||||
navigator.presentation.defaultRequest = presentation_request;
|
||||
try {
|
||||
window.presentation_request = new PresentationRequest("/presentation-api/receiving-ua/idlharness.html");
|
||||
window.presentation_request_urls = new PresentationRequest([
|
||||
"/presentation-api/receiving-ua/idlharness.html",
|
||||
"https://www.example.com/presentation.html"
|
||||
]);
|
||||
navigator.presentation.defaultRequest = window.presentation_request;
|
||||
} catch (e) {
|
||||
// Will be surfaced in idlharness.js's test_object below.
|
||||
}
|
||||
|
||||
idl_array.add_objects({
|
||||
Presentation: ['navigator.presentation'],
|
||||
PresentationRequest: ['navigator.presentation.defaultRequest', 'presentation_request', 'presentation_request_urls']
|
||||
Presentation: ['navigator.presentation'],
|
||||
PresentationRequest: [
|
||||
'navigator.presentation.defaultRequest',
|
||||
'presentation_request',
|
||||
'presentation_request_urls'
|
||||
],
|
||||
});
|
||||
idl_array.test();
|
||||
}, "Test IDL implementation of Presentation API");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue