This test suite comes from https://github.com/w3c/web-platform-tests/tree/master/workers
with modification:
-WorkerLocation_search_empty.htm
+1. WorkerLocation_search_empty.htm
- var ExpectedResult = SearchString;
+ var ExpectedResult = "";
+2. All TCs:
+- setup({timeout:500});
++ setup({timeout:2000});
+
+
These tests are copyright by W3C and/or the author listed in the test
file. The tests are dual-licensed under the W3C Test Suite License:
http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var TestResult = true;
var t = async_test("Test Description: A port message queue can be enabled or disabled, and is initially disabled.");
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
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.";
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var ErrorMessage = "Error Message";
var FileName = './support/ErrorEvent.js';
var description = "WorkerGlobalScope onerror event handler 1st argument: message";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var DATA = "TestEventTarget";
var FileName = './support/EventListener.js';
worker.postMessage(DATA);
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/XMLHttpRequest.js';
var RequstUrl = 'XMLHttpRequest.txt';
var ExpectedResult = "Request Succeeded!";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var DATA = "ping";
var FileName = './support/EventListener.js';
worker.postMessage(DATA);
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerClose.js';
var ExpectedResult = "ping";
var TestResult;
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/ImportScripts.js";
var ExpectedResult = "Pass";
worker.postMessage("ping");
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/ImportScriptsNetworkErr.js";
var ExpectedResult = "Pass";
var description = "importScripts(): Throw NETWORK_ERR exception whenever attempt to fetch script is failed.";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var DATA = "TestEventTarget";
var FileName = './support/EventListener.js';
var ExpectedResult = "ping";
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/Timer.js';
var DATA = "IntervalHandler";
var ExpectedResult = ["hello", "worker", "worker"];
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/Timer.js';
var DATA = "TimeoutHandler";
var ExpectedResult = ["hello", "worker", "worker"];
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var href = window.location.href;
var ExpectedResult = href.substring(0, href.lastIndexOf('/')) + FileName.substring(1);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerLocation.js";
var HashString = "#HashString";
var ExpectedResult = HashString;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerLocation.js";
var HashString = "#question%3f";
var ExpectedResult = HashString;
worker.postMessage(EvalScript);
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var HashString = "";
var ExpectedResult = HashString;
worker.postMessage(EvalScript);
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var ExpectedResult = window.location.host;
var description = "WorkerLocation host attribute returns the current host and port (if it's not the default port) "
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var ExpectedResult = window.location.hostname;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerLocation.js?srch%20#hash";
var href = window.location.href;
var ExpectedResult = href.substring(0, href.lastIndexOf('/')) + FileName.substring(1);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var pathname = window.location.pathname;
var ExpectedResult = pathname.substring(0, pathname.lastIndexOf('/')) + FileName.substring(1);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var ExpectedResult = "";
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var ExpectedResult = window.location.protocol;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var SearchString = "?SearchString";
var ExpectedResult = SearchString;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerLocation.js";
var SearchString = "?";
var ExpectedResult = "";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var SearchString = "?test#";
var ExpectedResult = "?test";
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerLocation.js';
var SearchString = "";
var ExpectedResult = SearchString;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerNavigator.js";
var description = "WorkerNavigator appName: Returns the name of the browser: " + window.navigator.appName;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerNavigator.js";
var description = "WorkerNavigator appVersion: Returns the version of the browser: " + window.navigator.appVersion;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerNavigator.js";
var description = "WorkerNavigator implements NavigatorOnLine.";
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerNavigator.js";
var description = "WorkerNavigator.platform returns the name of the platform: " + window.navigator.platform;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerNavigator.js";
var description = "WorkerNavigator.userAgent returns the complete User-Agent header: " + window.navigator.userAgent;
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var ErrorMessage = "Error Message";
var FileName = './support/ErrorEvent.js';
var description = "ErrorEvent message attribute represents the error message.";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var ErrorMessage = "Error Message";
var FileName = './support/ErrorEvent.js';
var description = "ErrorEvent object and ErrorEvent.type";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var EVENT = "message";
var FileName = './support/WorkerBasic.js';
var ExpectedResult = "Pass";
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var ExpectedResult = "Pass";
var t = async_test("Test Description: Script resource is always assumed to be JavaScript, regardless of the MIME type.");
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = './support/WorkerTerminate.js';
var ExpectedResult = 10001;
var TestResult = 0;
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var FileName = "./support/WorkerDataCloneErr.js";
var ExpectedResult = "Pass";
var description = "Throw a DATA_CLONE_ERR exception when a host object (e.g. a DOM node) is used with postMessage.";
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var OriginalPort = null;
var ClonedPort = null;
var description = "Test Description: When the user agent is to clone a port original port, with "
ChannelB.port1.postMessage("ping");
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var TargetPort = null;
var description = "The postMessage() method - Create an event that uses the MessageEvent interface, "
+ "with the name message, which does not bubble and is not cancelable.";
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var TargetPort = null;
var description = "The postMessage() method - Make new ports into a read only array.";
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<body>
<div id=log></div>
<script>
- setup({timeout:500});
+ setup({timeout:2000});
var TARGET = null;
var SOURCE = null;
var description = "The postMessage() method - Let target port be the port with which source "
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>