| OLD | NEW |
| (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> | |
| OLD | NEW |