| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html
|
| deleted file mode 100644
|
| index 7853e5d287a63c2c7027827ec13781fe826d504f..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html
|
| +++ /dev/null
|
| @@ -1,82 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| -<script>
|
| -var worker;
|
| -
|
| -function startWorker()
|
| -{
|
| - worker = new Worker("resources/dedicated-worker-suspend-setTimeout.js");
|
| - worker.onmessage = function(event) { };
|
| - worker.postMessage(1);
|
| - log("Started worker");
|
| -}
|
| -
|
| -
|
| -function test()
|
| -{
|
| -
|
| - var workerId;
|
| - var workerRequestId = 1;
|
| - function sendCommandToWorker(method, params)
|
| - {
|
| - var requestId = workerRequestId++;
|
| - InspectorTest.sendCommand("Target.sendMessageToTarget",
|
| - {
|
| - "targetId": workerId,
|
| - "message": JSON.stringify({ "method": method,
|
| - "params": params,
|
| - "id": requestId })
|
| - });
|
| - return requestId;
|
| - }
|
| -
|
| - function didEnableWorkerDebugging(messageObject)
|
| - {
|
| - if ("error" in messageObject) {
|
| - InspectorTest.log("FAIL: Couldn't enable worker debugger: " + messageObject.error.message);
|
| - InspectorTest.completeTest();
|
| - }
|
| - }
|
| - InspectorTest.sendCommand("Target.setAutoAttach", {autoAttach: true, waitForDebuggerOnStart: true}, didEnableWorkerDebugging);
|
| - InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker()" });
|
| -
|
| - InspectorTest.eventHandler["Target.attachedToTarget"] = function(messageObject)
|
| - {
|
| - workerId = messageObject["params"]["targetInfo"]["targetId"];
|
| - InspectorTest.log("Worker created");
|
| - sendCommandToWorker("Debugger.enable", {});
|
| - sendCommandToWorker("Runtime.runIfWaitingForDebugger", {});
|
| - }
|
| -
|
| - var pauseCount = 0;
|
| - var evalRequestId;
|
| - InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
|
| - {
|
| - var message = JSON.parse(messageObject["params"]["message"]);
|
| - if (message["method"] === "Debugger.paused") {
|
| - InspectorTest.log("SUCCESS: Worker paused");
|
| - if (++pauseCount === 1) {
|
| - evalRequestId = sendCommandToWorker("Runtime.evaluate", { "expression": "global_value" });
|
| - } else {
|
| - InspectorTest.log("FAIL: debugger paused second time");
|
| - InspectorTest.completeTest();
|
| - }
|
| - } else if (evalRequestId && message["id"] === evalRequestId) {
|
| - var value = message["result"]["result"]["value"];
|
| - if (value === 1)
|
| - InspectorTest.log("SUCCESS: global_value is 1");
|
| - else
|
| - InspectorTest.log("FAIL: setTimeout callback fired while script execution was paused");
|
| - sendCommandToWorker("Debugger.disable", {});
|
| - InspectorTest.completeTest();
|
| - }
|
| - }
|
| -}
|
| -</script>
|
| -</head>
|
| -<body onLoad="runTest();">
|
| -<p>Tests that setTimeout callback will not fire while script execution is paused.<a href="https://code.google.com/p/chromium/issues/detail?id=377926">Bug 377926.</a>
|
| -</p>
|
| -</body>
|
| -</html>
|
|
|