mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,21 @@
|
|||
<!--
|
||||
postMessage('å');
|
||||
/*
|
||||
-->
|
||||
<!doctype html>
|
||||
<title>encoding, dedicated worker</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('#');
|
||||
worker.onmessage = this.step_func(function(e) {
|
||||
assert_equals(e.data, '\u00e5');
|
||||
this.done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
|
@ -0,0 +1 @@
|
|||
Content-Type: text/html; charset=windows-1252
|
|
@ -0,0 +1,23 @@
|
|||
<!--
|
||||
onconnect = function(e) {
|
||||
e.ports[0].postMessage('å');
|
||||
}
|
||||
/*
|
||||
-->
|
||||
<!doctype html>
|
||||
<title>encoding, shared worker</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new SharedWorker('#', '');
|
||||
worker.port.onmessage = this.step_func(function(e) {
|
||||
assert_equals(e.data, '\u00e5');
|
||||
this.done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
|
@ -0,0 +1 @@
|
|||
Content-Type: text/html; charset=windows-1252
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
def main(request, response):
|
||||
return "PASS" if request.GET.first('x') == 'å' else "FAIL"
|
|
@ -0,0 +1,26 @@
|
|||
<!--
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', '003-1.py?x=å', false);
|
||||
xhr.send();
|
||||
var passed = xhr.responseText == 'PASS';
|
||||
postMessage(passed);
|
||||
|
||||
/*
|
||||
-->
|
||||
<!doctype html>
|
||||
<title>URL encoding, dedicated worker</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('#');
|
||||
worker.onmessage = this.step_func(function(e) {
|
||||
assert_true(e.data);
|
||||
this.done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
|
@ -0,0 +1,27 @@
|
|||
<!--
|
||||
onconnect = function(e) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', '003-1.py?x=å', false);
|
||||
xhr.send();
|
||||
var passed = xhr.responseText == 'PASS';
|
||||
e.ports[0].postMessage(passed);
|
||||
}
|
||||
/*
|
||||
-->
|
||||
<!doctype html>
|
||||
<title>URL encoding, shared worker</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
async_test(function() {
|
||||
var worker = new SharedWorker('#');
|
||||
worker.port.onmessage = this.step_func(function(e) {
|
||||
assert_true(e.data);
|
||||
this.done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
Loading…
Add table
Add a link
Reference in a new issue