Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.

This commit is contained in:
Ms2ger 2015-07-09 14:05:01 +02:00
parent 12195a5c4a
commit bfb96b9448
1166 changed files with 35123 additions and 900 deletions

View file

@ -1,36 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title> MessageChannel: port message queue is initially disabled </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
var TestResult = true;
var t = async_test("Test Description: A port message queue can be enabled or disabled, and is initially disabled.");
var channel = new MessageChannel();
channel.port2.addEventListener("message", TestMessageEvent, true);
channel.port1.postMessage("ping");
setTimeout(t.step_func(VerifyResult), 100);
function TestMessageEvent(evt)
{
TestResult = false;
}
function VerifyResult()
{
assert_true(TestResult, "Port message queue is initially disabled?");
t.done();
}
</script>
</body>
</html>

View file

@ -1,38 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title> MessageChannel: port.onmessage enables message queue </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
var TestResult = false;
var description = "The first time a MessagePort object's onmessage IDL attribute is set, the port's "
+ "port message queue must be enabled, as if the start() method had been called.";
var t = async_test("Test Description: " + description);
var channel = new MessageChannel();
channel.port2.onmessage = TestMessageEvent;
channel.port1.postMessage("ping");
setTimeout(t.step_func(VerifyResult), 100);
function TestMessageEvent(evt)
{
TestResult = true;
}
function VerifyResult()
{
assert_true(TestResult, "Port message queue is enabled?");
t.done();
}
</script>
</body>
</html>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>MessageChannel: port message queue is initially disabled</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
var channel = new MessageChannel();
channel.port2.addEventListener("message", t.unreached_func(), true);
channel.port1.postMessage("ping");
setTimeout(t.step_func_done(), 100);
});
</script>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>MessageChannel: port.onmessage enables message queue</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
var channel = new MessageChannel();
channel.port2.onmessage = t.step_func_done();
channel.port1.postMessage("ping");
setTimeout(t.unreached_func(), 100);
});
</script>