Chromium Code Reviews| 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 src="../debugger/resources/jquery-1.11.1.min.js"></script> | 5 <script src="../debugger/resources/jquery-1.11.1.min.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 var pp = $("p"); | 10 var pp = $("p"); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 51 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
| 52 } | 52 } |
| 53 | 53 |
| 54 function step2() | 54 function step2() |
| 55 { | 55 { |
| 56 var actions = [ | 56 var actions = [ |
| 57 "Print", // "debugger" in testFunction() | 57 "Print", // "debugger" in testFunction() |
| 58 "StepInto", "StepInto", "Print", // entered onEachScript() | 58 "StepInto", "StepInto", "Print", // entered onEachScript() |
| 59 "StepInto", "StepInto", "Print", // again in onEachScript() | 59 "StepInto", "StepInto", "Print", // again in onEachScript() |
| 60 "StepOver", "StepOver", "Print", // again in onEachScript() | 60 "StepOver", "StepOver", "Print", // again in onEachScript() |
| 61 "StepOut", "Print", // last time in onEachScript() | 61 "StepOver", "StepOver", "Print", // again in onEachScript() |
| 62 "StepOut", "Print", // about to execute jQuery.trigger( ) | 62 "StepOut", "Print", // about to execute jQuery.trigger( ) |
| 63 "StepInto", "Print", // onTestEvent1 | 63 "StepInto", "Print", // onTestEvent1 |
| 64 "StepOut", "Print", // onTestEvent2 | 64 "StepOver", "StepOver", "Print", // onTestEvent2 |
|
kozy
2017/01/20 21:59:59
remove this one
| |
| 65 "StepOver", "StepOver", "Print", // onTestEvent3 | 65 "StepOver", "StepOver", "Print", // onTestEvent3 |
| 66 ]; | 66 ]; |
| 67 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); | 67 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); |
| 68 } | 68 } |
| 69 | 69 |
| 70 function step3() | 70 function step3() |
| 71 { | 71 { |
| 72 InspectorTest.completeDebuggerTest(); | 72 InspectorTest.completeDebuggerTest(); |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 </script> | 76 </script> |
| 77 </head> | 77 </head> |
| 78 | 78 |
| 79 <body onload="runTest()"> | 79 <body onload="runTest()"> |
| 80 <input type='button' onclick='testFunction()' value='Test'/> | 80 <input type='button' onclick='testFunction()' value='Test'/> |
| 81 <p> | 81 <p> |
| 82 Tests framework blackboxing feature on jQuery. | 82 Tests framework blackboxing feature on jQuery. |
| 83 </p> | 83 </p> |
| 84 </body> | 84 </body> |
| 85 </html> | 85 </html> |
| OLD | NEW |