Index: LayoutTests/fast/workers/resources/worker-timeout-increasing-order.js |
diff --git a/LayoutTests/fast/workers/resources/worker-timeout-increasing-order.js b/LayoutTests/fast/workers/resources/worker-timeout-increasing-order.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1891888a3fb82c761795f70db2e6bff9e9a7b864 |
--- /dev/null |
+++ b/LayoutTests/fast/workers/resources/worker-timeout-increasing-order.js |
@@ -0,0 +1,8 @@ |
+self.postMessage("Test started."); |
+// The test will create 3 timeouts with their intervals increasing. |
+// If the timeouts execute in order then the test is PASS. |
+self.addEventListener('message', function(e) { |
+ setTimeout(function () { postMessage(1); }, 5); |
+ setTimeout(function () { postMessage(2); }, 10); |
+ setTimeout(function () { postMessage(3); postMessage("DONE"); }, 15); |
+}, false); |