Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / pause-in-internal-script.html
blob1a6d916629c40ce8b9ca54b6345a12bd68181e0c
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script>
8 function testFunction()
10 var array = [2, 5, 7];
11 var sum = 0;
12 array.forEach(function(key)
14 sum += array[key];
15 });
16 return sum;
19 function test()
21 InspectorTest.runDebuggerTestSuite([
22 function testSetBreakpoint(next)
24 InspectorTest.showScriptSource("pause-in-internal-script.html", didShowScriptSource);
26 var breakpointFunctionFrame = null;
28 function didShowScriptSource(sourceFrame)
30 breakpointFunctionFrame = sourceFrame;
31 InspectorTest.addResult("Script source was shown.");
32 InspectorTest.setBreakpoint(sourceFrame, 13, "", true);
33 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
36 function didPause(callFrames)
38 InspectorTest.captureStackTrace(callFrames);
39 InspectorTest.removeBreakpoint(breakpointFunctionFrame, 13);
40 next();
43 ]);
46 </script>
48 </head>
50 <body onload="runTest()">
51 <p>Tests that internal scripts unknown to front-end are processed correctly when appear in debugger call frames.
52 <a href="https://bugs.webkit.org/show_bug.cgi?id=64995">Bug 64995</a>
53 </p>
55 </body>
56 </html>