Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/postMessage-on-pause.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/postMessage-on-pause.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/postMessage-on-pause.html |
deleted file mode 100644 |
index 7cb5fbc3e6b4ea5bf18f4db236191bb7e3f70877..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/postMessage-on-pause.html |
+++ /dev/null |
@@ -1,72 +0,0 @@ |
-<html> |
-<head> |
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script> |
-<script> |
- |
-var messageDispatched = false; |
-window.addEventListener("message", function(event) |
-{ |
- messageDispatched = true; |
- debugger; |
-}, true); |
- |
-function testFunction() |
-{ |
- window.postMessage("test", "*"); |
- debugger; |
-} |
- |
-function test() |
-{ |
- InspectorTest.sendCommand("Debugger.enable", {}); |
- InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedInTestFunction; |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testFunction()" }); |
- |
- function handleDebuggerPausedInTestFunction(messageObject) |
- { |
- InspectorTest.log("Paused on 'debugger;'"); |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "messageDispatched" }, didEvaluateOnPause1); |
- } |
- |
- function didEvaluateOnPause1(messageObject) |
- { |
- var r = messageObject.result.result; |
- if (r.type === "boolean" && r.value === false) |
- InspectorTest.log("PASS: message has not been dispatched yet."); |
- else |
- InspectorTest.log("FAIL: unexpected response " + JSON.stringify(messageObject, null, 2)); |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "messageDispatched" }, didEvaluateOnPause2); |
- } |
- |
- function didEvaluateOnPause2(messageObject) |
- { |
- var r = messageObject.result.result; |
- if (r.type === "boolean" && r.value === false) |
- InspectorTest.log("PASS: message has not been dispatched yet."); |
- else |
- InspectorTest.log("FAIL: unexpected response " + JSON.stringify(messageObject, null, 2)); |
- InspectorTest.sendCommand("Debugger.resume", { }, didResume); |
- } |
- |
- function didResume(messageObject) |
- { |
- InspectorTest.log("Resumed, now waiting for pause in the event listener..."); |
- InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedInEventListener; |
- } |
- |
- function handleDebuggerPausedInEventListener(messageObject) |
- { |
- InspectorTest.log("PASS: pasued in the event listener."); |
- InspectorTest.sendCommand("Debugger.resume", { }, didResume2); |
- } |
- |
- function didResume2(messageObject) |
- { |
- InspectorTest.completeTest(); |
- } |
-} |
-</script> |
-</head> |
-<body onLoad="runTest();"> |
-</body> |
-</html> |