| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function testFunction() | 7 function testFunction() |
| 8 { | 8 { |
| 9 setTimeout(timeout, 0); | 9 setTimeout(timeout, 0); |
| 10 } | 10 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 function onScroll2() | 29 function onScroll2() |
| 30 { | 30 { |
| 31 var outer = document.getElementById("outer"); | 31 var outer = document.getElementById("outer"); |
| 32 outer.removeEventListener("scroll", onScroll2, false); | 32 outer.removeEventListener("scroll", onScroll2, false); |
| 33 debugger; | 33 debugger; |
| 34 } | 34 } |
| 35 | 35 |
| 36 var test = function() | 36 var test = function() |
| 37 { | 37 { |
| 38 var totalDebuggerStatements = 2; | 38 var totalDebuggerStatements = 2; |
| 39 var maxAsyncCallStackDepth = 4; | 39 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements); |
| 40 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); | |
| 41 } | 40 } |
| 42 | 41 |
| 43 </script> | 42 </script> |
| 44 </head> | 43 </head> |
| 45 | 44 |
| 46 <body onload="runTest()"> | 45 <body onload="runTest()"> |
| 47 <p> | 46 <p> |
| 48 Tests asynchronous call stacks for scripted scroll events. | 47 Tests asynchronous call stacks for scripted scroll events. |
| 49 </p> | 48 </p> |
| 50 | 49 |
| 51 <div id="outer" style="width: 100px; height: 100px; overflow:auto"> | 50 <div id="outer" style="width: 100px; height: 100px; overflow:auto"> |
| 52 <div id="inner" style="width: 200px; height: 200px;"></div> | 51 <div id="inner" style="width: 200px; height: 200px;"></div> |
| 53 </div> | 52 </div> |
| 54 | 53 |
| 55 </body> | 54 </body> |
| 56 </html> | 55 </html> |
| OLD | NEW |