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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-into-inline-event-handler.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/step-into-inline-event-handler.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-into-inline-event-handler.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-into-inline-event-handler.html
deleted file mode 100644
index e12013120d6acdc5e8167a7ea9a3391fa4c61eaf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-into-inline-event-handler.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function testFunction()
-{
- var e = document.getElementById("div");
- debugger;
- e.click();
-}
-
-function shouldNotBeThisFunction()
-{
- return 239;
-}
-
-function test()
-{
- InspectorTest.waitForEventPromise("Debugger.paused").then(makeStepping);
-
- InspectorTest.sendCommandPromise("Debugger.enable", {})
- .then((result) => InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "testFunction()" }))
- .then(() => InspectorTest.completeTest());
-
- function makeStepping()
- {
- sendCommandAndWaitForPause("Debugger.stepInto")
- .then(() => sendCommandAndWaitForPause("Debugger.stepInto"))
- .then((result) => dumpTopCallFrame(result))
- .then(() => InspectorTest.sendCommandPromise("Debugger.resume"));
- }
-
- function sendCommandAndWaitForPause(command)
- {
- InspectorTest.sendCommand(command, {});
- return InspectorTest.waitForEventPromise("Debugger.paused");
- }
-
- function dumpTopCallFrame(result)
- {
- var frame = result.params.callFrames[0];
- InspectorTest.log("functionName (should be empty): " + (frame.functionName.length ? frame.functionName : "empty"));
- }
-}
-</script>
-</head>
-<div id="div" onclick="shouldNotBeThisFunction()">
-</div>
-<body onLoad="runTest();">
-Tests that Debugger.stepInto doesn't ignore inline event listeners.
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698