Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/postMessage-on-pause.html

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698