Files
firefox/testing/web-platform/tests/FileAPI/url/multi-global-origin-serialization.sub.html
jugglinmike 1709e45d46 Bug 1591661 [wpt PR 19925] - [FileAPI] Opt-in to single-page test feature, a=testonly
Automatic update from web-platform-tests
[FileAPI] Opt-in to single-page test feature (#19925)

testharness.js was recently extended with an API to explicitly opt-in to
the "single page test" feature [1]. As per WPT RFC 28 [2], tests which
do not use this API and which do not declare any subtests will soon be
reported as a harness error.

Update the tests which previously opted in implicitly to use the new
API.

[1] https://github.com/web-platform-tests/wpt/pull/19449
[2] https://github.com/web-platform-tests/rfcs/blob/master/rfcs/single_test.md
--

wpt-commits: 89ebe927c237ed05c732490ca7d82b7fc41f5908
wpt-pr: 19925

Differential Revision: https://phabricator.services.mozilla.com/D53490
2019-11-20 11:18:47 +00:00

27 lines
873 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Blob URL serialization (specifically the origin) in multi-global situations</title>
<link rel="help" href="https://w3c.github.io/FileAPI/#unicodeBlobURL">
<link rel="author" title="Domenic Denicola" href="mailto:[email protected]">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<!-- this page is the entry global -->
<iframe src="//{{domains[www]}}:{{location[port]}}/FileAPI/support/incumbent.sub.html"></iframe>
<script>
"use strict";
setup({ single_test: true });
document.domain = "{{host}}";
window.onload = () => {
const url = frames[0].createBlobURL();
const desired = "blob:{{location[scheme]}}://www1";
assert_equals(url.substring(0, desired.length), desired,
"Origin should contain www1, from the current settings object");
done();
};
</script>