mirror of
https://github.com/servo/servo.git
synced 2025-09-02 02:58:22 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<title>WorkerLocation with redirects: module dedicated workers</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new Worker('helper-redirect.py?fail', {type: 'module'});
|
||||
worker.onmessage = this.step_func_done(function(e) {
|
||||
assert_equals(e.data[0], location.href.replace(/\/[^\/]+$/, '/post-location-members.js?a'));
|
||||
assert_equals(e.data[1], location.protocol);
|
||||
assert_equals(e.data[2], location.host);
|
||||
assert_equals(e.data[3], location.hostname);
|
||||
assert_equals(e.data[4], location.port);
|
||||
assert_equals(e.data[5], location.pathname.replace(/\/[^\/]+$/, '/post-location-members.js'));
|
||||
assert_equals(e.data[6], '?a');
|
||||
assert_equals(e.data[7], '');
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype html>
|
||||
<title>WorkerLocation with redirects: classic shared workers</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
fetch_tests_from_worker(
|
||||
new SharedWorker('/common/redirect.py?location=/workers/interfaces/WorkerGlobalScope/location/redirect.js?a'));
|
||||
</script>
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
-->
|
||||
<!doctype html>
|
||||
<title>location with a worker in separate file that redirects</title>
|
||||
<title>WorkerLocation with redirects: classic dedicated workers</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
importScripts('/resources/testharness.js');
|
||||
test(t => {
|
||||
assert_equals(location.pathname, '/workers/interfaces/WorkerGlobalScope/location/redirect.js');
|
||||
assert_equals(location.search, '?a');
|
||||
assert_equals(location.hash, '');
|
||||
});
|
||||
done();
|
Loading…
Add table
Add a link
Reference in a new issue