mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Base URL in workers: importScripts</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new Worker("../beta/importScripts.py");
|
||||
worker.onmessage = this.step_func_done(function(e) {
|
||||
assert_equals(e.data, "gamma");
|
||||
});
|
||||
worker.onerror = this.unreached_func("Got error event");
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Base URL in workers: new SharedWorker()</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new Worker("../beta/sharedworker.py");
|
||||
worker.onmessage = this.step_func_done(function(e) {
|
||||
assert_equals(e.data, "gamma");
|
||||
});
|
||||
worker.onerror = this.unreached_func("Got error event");
|
||||
});
|
||||
</script>
|
||||
14
testing/web-platform/tests/workers/baseurl/alpha/worker.html
Normal file
14
testing/web-platform/tests/workers/baseurl/alpha/worker.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Base URL in workers: new Worker()</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new Worker("../beta/worker.py");
|
||||
worker.onmessage = this.step_func_done(function(e) {
|
||||
assert_equals(e.data, "gamma");
|
||||
});
|
||||
worker.onerror = this.unreached_func("Got error event");
|
||||
});
|
||||
</script>
|
||||
14
testing/web-platform/tests/workers/baseurl/alpha/xhr.html
Normal file
14
testing/web-platform/tests/workers/baseurl/alpha/xhr.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Base URL in workers: XHR</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new Worker("../beta/xhr.py");
|
||||
worker.onmessage = this.step_func_done(function(e) {
|
||||
assert_equals(e.data, "gamma\n");
|
||||
});
|
||||
worker.onerror = this.unreached_func("Got error event");
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
def main(request, response):
|
||||
return (302, "Moved"), [("Location", "../gamma/importScripts.js")], "postMessage('executed redirecting script');"
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
postMessage('beta');
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
def main(request, response):
|
||||
return (302, "Moved"), [("Location", "../gamma/sharedworker.js")], "postMessage('executed redirecting script');"
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
onconnect = function(e) {
|
||||
e.source.postMessage('beta');
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
postMessage("beta");
|
||||
1
testing/web-platform/tests/workers/baseurl/beta/test.txt
Normal file
1
testing/web-platform/tests/workers/baseurl/beta/test.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
beta
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
def main(request, response):
|
||||
return (302, "Moved"), [("Location", "../gamma/worker.js")], "postMessage('executed redirecting script');"
|
||||
|
||||
3
testing/web-platform/tests/workers/baseurl/beta/xhr.py
Normal file
3
testing/web-platform/tests/workers/baseurl/beta/xhr.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def main(request, response):
|
||||
return (302, "Moved"), [("Location", "../gamma/xhr.js")], "postMessage('executed redirecting script');"
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
importScripts("script.js");
|
||||
|
|
@ -0,0 +1 @@
|
|||
postMessage('gamma');
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
var worker = new SharedWorker("subsharedworker.js");
|
||||
worker.port.onmessage = function(e) {
|
||||
postMessage(e.data);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
onconnect = function(e) {
|
||||
e.source.postMessage('gamma');
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
postMessage("gamma");
|
||||
|
|
@ -0,0 +1 @@
|
|||
gamma
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
var worker = new Worker("subworker.js");
|
||||
worker.onmessage = function(e) {
|
||||
postMessage(e.data);
|
||||
}
|
||||
4
testing/web-platform/tests/workers/baseurl/gamma/xhr.js
Normal file
4
testing/web-platform/tests/workers/baseurl/gamma/xhr.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var x = new XMLHttpRequest();
|
||||
x.open("GET", "test.txt", false);
|
||||
x.send();
|
||||
postMessage(x.response);
|
||||
Loading…
Add table
Add a link
Reference in a new issue