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

Side by Side Diff: LayoutTests/inspector/sources/debugger/pause-in-internal-script.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
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
6 <script>
7
8 function testFunction()
9 {
10 var array = [2, 5, 7];
11 var sum = 0;
12 array.forEach(function(key)
13 {
14 sum += array[key];
15 });
16 return sum;
17 }
18
19 function test()
20 {
21 InspectorTest.runDebuggerTestSuite([
22 function testSetBreakpoint(next)
23 {
24 InspectorTest.showScriptSource("pause-in-internal-script.html", didS howScriptSource);
25
26 var breakpointFunctionFrame = null;
27
28 function didShowScriptSource(sourceFrame)
29 {
30 breakpointFunctionFrame = sourceFrame;
31 InspectorTest.addResult("Script source was shown.");
32 InspectorTest.setBreakpoint(sourceFrame, 13, "", true);
33 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
34 }
35
36 function didPause(callFrames)
37 {
38 InspectorTest.captureStackTrace(callFrames);
39 InspectorTest.removeBreakpoint(breakpointFunctionFrame, 13);
40 next();
41 }
42 }
43 ]);
44 };
45
46 </script>
47
48 </head>
49
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>
54
55 </body>
56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698