Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255

This commit is contained in:
James Graham 2015-03-27 09:15:38 +00:00
parent b2a5225831
commit 1a81b18b9f
12321 changed files with 544385 additions and 6 deletions

View file

@ -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>
<!--
*/
//-->

View file

@ -0,0 +1 @@
Content-Type: text/html; charset=windows-1252

View file

@ -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>
<!--
*/
//-->

View file

@ -0,0 +1 @@
Content-Type: text/html; charset=windows-1252

View file

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
def main(request, response):
return "PASS" if request.GET.first('x') == 'å' else "FAIL"

View file

@ -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>
<!--
*/
//-->

View file

@ -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>
<!--
*/
//-->