Commit 63eed842 authored by ap@webkit.org's avatar ap@webkit.org

Reviewed by Maciej Stachowiak.

        Fix fast/events/message-port.html to not be timing-dependent (it was failing on some bots).

        * fast/events/message-port.html:
        * fast/events/message-port-expected.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 76544c1b
2008-10-23 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Maciej Stachowiak.
Fix fast/events/message-port.html to not be timing-dependent (it was failing on some bots).
* fast/events/message-port.html:
* fast/events/message-port-expected.txt:
2008-10-23 Adam Barth <abarth@webkit.org>
Reviewed by Sam Weinig.
......
Test cross-frame MessagePort communication.
Should be a series of SUCCESS messages, followed with DONE.
Simple exchange: SUCCESS
Posted port: SUCCESS
Conversation: SUCCESS
A port is active: SUCCESS
A closed port is inactive: SUCCESS
DONE
<body>
<p>Test cross-frame MessagePort communication.</p>
<p>Should be a series of SUCCESS messages, followed with DONE.</p>
<pre id=log></pre>
<script>
function log(message)
......@@ -25,9 +26,9 @@ function test()
log("Simple exchange: SUCCESS");
else
log("Simple exchange: FAIL. Got message '" + evt.data + "' from '" + evt.origin + "'.");
test2();
};
mainPort.start();
setTimeout(test2, 50);
}
function test2()
......@@ -39,9 +40,9 @@ function test2()
log("Posted port: SUCCESS");
else
log("Posted port: FAIL. Got message '" + evt.data + "' from '" + evt.origin + "'.");
test3();
};
channel.port1.start();
setTimeout(test3, 50);
}
function test3()
......@@ -52,9 +53,9 @@ function test3()
log("Conversation: SUCCESS");
else
log("Conversation: FAIL. Got message '" + evt.data + "' from '" + evt.origin + "'.");
test4();
};
port.start();
setTimeout(test4, 50);
}
function test4()
......@@ -65,6 +66,8 @@ function test4()
log("A closed port is inactive: " + (mainPort.active ? "FAIL" : "SUCCESS"));
log("DONE");
if (window.layoutTestController)
layoutTestController.notifyDone();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment