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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setEventListenerBreakpoint.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/debugger-setEventListenerBreakpoint.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setEventListenerBreakpoint.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setEventListenerBreakpoint.html
deleted file mode 100644
index cafebf4fa26938b67ecb2575c739cde29217560b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setEventListenerBreakpoint.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.sendCommand("Debugger.enable", {}, setEventListenerBreakpointWhenDOMDisabled);
-
- function finishIfError(message)
- {
- if (message.result)
- return;
- InspectorTest.log("FAIL: " + JSON.stringify(message));
- InspectorTest.completeTest();
- }
-
- function setEventListenerBreakpointWhenDOMDisabled(message)
- {
- finishIfError(message);
- InspectorTest.log("PASS: Debugger was enabled");
- InspectorTest.sendCommand("DOMDebugger.setEventListenerBreakpoint", {'eventName':'click'}, enableDOMAgent);
- }
-
- function enableDOMAgent(message)
- {
- InspectorTest.log("Error on attempt to set event listener breakpoint when DOM is disabled: " + JSON.stringify(message.error));
- InspectorTest.sendCommand("DOM.enable", {}, setEventListenerBreakpoint);
- }
-
- function setEventListenerBreakpoint(message)
- {
- finishIfError(message);
- InspectorTest.log("PASS: DOM was enabled");
- InspectorTest.sendCommand("DOMDebugger.setEventListenerBreakpoint", {'eventName':'click'}, disableDOMAgent);
- }
-
-
- function disableDOMAgent(message)
- {
- finishIfError(message);
- InspectorTest.log("PASS: Listener was set.");
- InspectorTest.sendCommand("DOM.disable", {}, disableDOMAgent2);
- }
-
- function disableDOMAgent2(message)
- {
- finishIfError(message);
- InspectorTest.log("PASS: DOM agent was disabled successfully.");
- InspectorTest.sendCommand("DOM.disable", {}, finish);
- }
-
- function finish(message)
- {
- if (!message.error) {
- InspectorTest.log("FAIL: we expected an error but it wasn't happen.");
- InspectorTest.completeTest();
- return;
- }
-
- InspectorTest.log("PASS: The second attempt to disable DOM agent failed as expected.");
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onLoad="runTest();">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698