Commit 267dee9e authored by eric@webkit.org's avatar eric@webkit.org

2009-10-01 Drew Wilson <atwilson@chromium.org>

        Reviewed by David Levin.

        Remove clone count from worker-cloneport.html as it's flakey on multi-process ports like Chromium.
        https://bugs.webkit.org/show_bug.cgi?id=29698

        * fast/workers/worker-cloneport-expected.txt:
        * fast/workers/worker-cloneport.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d12945e4
2009-10-01 Drew Wilson <atwilson@chromium.org>
Reviewed by David Levin.
Remove clone count from worker-cloneport.html as it's flakey on multi-process ports like Chromium.
https://bugs.webkit.org/show_bug.cgi?id=29698
* fast/workers/worker-cloneport-expected.txt:
* fast/workers/worker-cloneport.html:
2009-10-01 Chris Marrin <cmarrin@apple.com>
Reviewed by Oliver Hunt.
......
Test MessagePort messaging/entangle/detangle across threads. Should print "SUCCESS" when done.
PASS: Received request for 50000 messages
PASS: postBack complete, cloned > 50 times.
SUCCESS - received 50000 messages.
DONE
......@@ -41,7 +41,6 @@ worker.onmessage = function(evt) {
}
// Keep cloning the passed port until we're told to stop.
var numClones = 0;
function resendPort(evt)
{
if (!evt.ports)
......@@ -50,15 +49,8 @@ function resendPort(evt)
log("FAIL: ports.length = " + evt.ports.length);
if (!stopCloning) {
numClones++;
evt.target.postMessage("", evt.ports);
} else {
if (numClones < 50) {
// If we didn't clone at least 50 times, then there's something amiss.
log("FAIL: postBack complete, but only cloned " + numClones + " times.");
} else {
log("PASS: postBack complete, cloned > 50 times.");
}
// Make sure the messages arrived in order.
var itemNum = 0;
// Queue up a task to execute once the messages have been processed. The timeout value is set fairly large to account for Chromium's different message delivery architecture.
......
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