Update web-platform-tests to revision 3a8328470d53c4501e31cec2775c4d33821c2275

This commit is contained in:
WPT Sync Bot 2018-03-20 21:09:12 -04:00
parent f92f0809f8
commit 40c0b971f1
32 changed files with 530 additions and 238 deletions

View file

@ -0,0 +1,32 @@
<!--
self.close()
var xhr = new XMLHttpRequest();
xhr.open("GET", "/resources/testharness.js");
xhr.send(42);
postMessage(xhr.readyState)
/*-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>XHR used when worker is closing itself</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
var test = async_test();
test.step(function() {
var worker = new Worker('#')
worker.onmessage = function(e) {
test.step(function() {
assert_equals(e.data, XMLHttpRequest.OPENED, 'XHR.readyState')
})
test.done()
}
})
</script>
</body>
</html>
<!--*/ //-->