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 var div = document.getElementById("myDiv"); | 9 var div = document.getElementById("myDiv"); |
10 function fooEventHandler1() { | 10 function fooEventHandler1() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 var stepCount = 0; | 44 var stepCount = 0; |
45 function step2(callFrames) | 45 function step2(callFrames) |
46 { | 46 { |
47 if (stepCount === 2) | 47 if (stepCount === 2) |
48 checkTopFrameFunction(callFrames, "fooEventHandler1"); | 48 checkTopFrameFunction(callFrames, "fooEventHandler1"); |
49 else if (stepCount === 5) | 49 else if (stepCount === 5) |
50 checkTopFrameFunction(callFrames, "fooEventHandler2"); | 50 checkTopFrameFunction(callFrames, "fooEventHandler2"); |
51 | 51 |
52 if (stepCount < 5) { | 52 if (stepCount < 5) { |
53 InspectorTest.addResult("Stepping into..."); | 53 InspectorTest.addResult("Stepping into..."); |
54 WebInspector.panels.scripts._stepIntoButton.element.click(); | 54 WebInspector.panels.sources._stepIntoButton.element.click(); |
55 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In
spectorTest, step2)); | 55 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In
spectorTest, step2)); |
56 } else | 56 } else |
57 InspectorTest.completeDebuggerTest(); | 57 InspectorTest.completeDebuggerTest(); |
58 stepCount++; | 58 stepCount++; |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
62 </script> | 62 </script> |
63 </head> | 63 </head> |
64 | 64 |
65 <body onload="runTest()"> | 65 <body onload="runTest()"> |
66 <p> | 66 <p> |
67 Tests that stepping into dispatchEvent() method will lead to a pause in the firs
t event listener. | 67 Tests that stepping into dispatchEvent() method will lead to a pause in the firs
t event listener. |
68 </p> | 68 </p> |
69 <div id="myDiv"></div> | 69 <div id="myDiv"></div> |
70 | 70 |
71 </body> | 71 </body> |
72 </html> | 72 </html> |
OLD | NEW |