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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional.html

Issue 1754483002: [DevTools] Added setBlackboxPatterns method to protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@provide-hash-for-anonymous-scripts
Patch Set: Created 4 years, 9 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 src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6
7 function testFunction()
8 {
9 debugger;
10 eval("var a = 42; ++a; callback(a + 239);\n//# sourceURL=framework.js")
11 return 42;
12 }
13
14 function callback(i)
15 {
16 return i;
17 }
18
19 function test()
20 {
21 InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patternCh angeFinishedForTests", step1);
22 var frameworkRegexString = "framework\\.js$";
23 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri ng);
24
25 function step1()
26 {
27 InspectorTest.startDebuggerTest(step2, true);
28 }
29
30 function step2()
31 {
32 InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
33 }
34
35 function step3()
36 {
37 var actions = [
38 "Print", // "debugger" in testFunction()
39 "StepInto", "StepInto", "Print", // entered callback(i)
40 "StepOut", "Print"
41 ];
42 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step4);
43 }
44
45 function step4()
46 {
47 InspectorTest.completeDebuggerTest();
48 }
49 }
50 </script>
51 </head>
52 <body onload="runTest()">
53 <p>Tests framework provisional blackboxing.</p>
54 </body>
55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698