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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-into-inline-event-handler.html

Issue 2242893004: [DevTools] Don't mark scripts from V8LazyEventListener as internal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a test Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script>
5
6 function testFunction()
7 {
8 var e = document.getElementById("div");
9 debugger;
10 e.click();
11 }
12
13 function shouldNotBeThisFunction()
14 {
15 return 239;
16 }
17
18 function test()
19 {
20 InspectorTest.waitForEventPromise("Debugger.paused")
21 .then(() => sendCommandAndWaitForPause("Debugger.stepInto"))
22 .then(() => sendCommandAndWaitForPause("Debugger.stepInto"))
23 .then((result) => dumpTopCallFrame(result))
24 .then(() => InspectorTest.sendCommandPromise("Debugger.resume"));
25
26 InspectorTest.sendCommandPromise("Debugger.enable", {})
27 .then((result) => InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "testFunction()" }))
28 .then(() => InspectorTest.completeTest());
29
30 function sendCommandAndWaitForPause(command)
31 {
32 InspectorTest.sendCommand(command, {});
33 return InspectorTest.waitForEventPromise("Debugger.paused");
34 }
35
36 function dumpTopCallFrame(result)
37 {
38 var frame = result.params.callFrames[0];
39 InspectorTest.log("functionName (should be empty): " + (frame.functionNa me.length ? frame.functionName : "empty"));
40 }
41 }
42 </script>
43 </head>
44 <div id="div" onclick="shouldNotBeThisFunction()">
45 </div>
46 <body onLoad="runTest();">
47 Tests that Debugger.stepInto doesn't ignore inline event listeners.
48 </body>
49 </html>
50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698