| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| deleted file mode 100644
|
| index 3919a0f5f5bb3d9e155da5c2c88858cc6d7c387a..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| +++ /dev/null
|
| @@ -1,75 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| -<script>
|
| -
|
| -
|
| -var worker;
|
| -
|
| -function startWorkerAndRunTest()
|
| -{
|
| - worker = new Worker("resources/dedicated-worker.js");
|
| - worker.onmessage = function(event) { };
|
| - worker.postMessage(1);
|
| - log("Started worker");
|
| - runTest();
|
| -}
|
| -
|
| -
|
| -function test()
|
| -{
|
| -
|
| - var workerId;
|
| - var workerRequestId = 1;
|
| - function sendCommandToWorker(method, params)
|
| - {
|
| - InspectorTest.sendCommand("Target.sendMessageToTarget",
|
| - {
|
| - "targetId": workerId,
|
| - "message": JSON.stringify({ "method": method,
|
| - "params": params,
|
| - "id": workerRequestId++ })
|
| - });
|
| - }
|
| -
|
| - 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: false}, didEnableWorkerDebugging);
|
| -
|
| -
|
| - InspectorTest.eventHandler["Target.attachedToTarget"] = function(messageObject)
|
| - {
|
| - workerId = messageObject["params"]["targetInfo"]["targetId"];
|
| - InspectorTest.log("Worker created");
|
| - InspectorTest.log("didConnectToWorker");
|
| - sendCommandToWorker("Debugger.enable", {});
|
| - sendCommandToWorker("Debugger.pause", {});
|
| - }
|
| -
|
| - InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
|
| - {
|
| - var message = JSON.parse(messageObject["params"]["message"]);
|
| - if (message["method"] === "Debugger.paused") {
|
| - InspectorTest.log("Worker paused");
|
| - InspectorTest.sendCommand("Runtime.evaluate", { "expression": "worker.terminate()" }, didTerminateWorker);
|
| - }
|
| - }
|
| -
|
| - function didTerminateWorker(messageObject)
|
| - {
|
| - InspectorTest.log("SUCCESS: Did terminate paused worker");
|
| - InspectorTest.completeTest();
|
| - }
|
| -
|
| -}
|
| -</script>
|
| -</head>
|
| -<body onLoad="startWorkerAndRunTest();">Test that inspected page won't crash if inspected worker is terminated while it is paused. Test passes if it doesn't crash.
|
| -<a href="https://bugs.webkit.org/show_bug.cgi?id=101065">Bug 101065.</a>
|
| -</body>
|
| -</html>
|
|
|