| 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 proto = Object.create(HTMLElement.prototype); | 9 var proto = Object.create(HTMLElement.prototype); |
| 10 proto.createdCallback = function createdCallback() | 10 proto.createdCallback = function createdCallback() |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 function step1() | 38 function step1() |
| 39 { | 39 { |
| 40 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 40 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
| 41 } | 41 } |
| 42 | 42 |
| 43 function step2() | 43 function step2() |
| 44 { | 44 { |
| 45 var actions = [ | 45 var actions = [ |
| 46 "Print", // debugger; in createdCallback | 46 "Print", // debugger; in createdCallback |
| 47 "StepOut", "Print", // at foo.setAttribute() | 47 "StepOut", "Print", // at foo.setAttribute() |
| 48 "StepInto", "StepInto", "Print", // at attributeChangedCallback | 48 "StepInto", "Print", // at attributeChangedCallback |
| 49 "StepOut", "Print", // at document.body.appendChild() | 49 "StepOut", "Print", // at document.body.appendChild() |
| 50 "StepInto", "StepInto", "Print", // at attachedCallback | 50 "StepInto", "Print", // at attachedCallback |
| 51 "StepOut", "Print", // at foo.remove() | 51 "StepOut", "Print", // at foo.remove() |
| 52 "StepInto", "StepInto", "Print", // at detachedCallback | 52 "StepInto", "Print", // at detachedCallback |
| 53 "StepOut", "Print", // at testFunction() return point | 53 "StepOut", "Print", // at testFunction() return point |
| 54 ]; | 54 ]; |
| 55 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); | 55 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); |
| 56 } | 56 } |
| 57 | 57 |
| 58 function step3() | 58 function step3() |
| 59 { | 59 { |
| 60 InspectorTest.completeDebuggerTest(); | 60 InspectorTest.completeDebuggerTest(); |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 </script> | 64 </script> |
| 65 </head> | 65 </head> |
| 66 | 66 |
| 67 <body onload="runTest()"> | 67 <body onload="runTest()"> |
| 68 <p> | 68 <p> |
| 69 Tests stepping out from custom element callbacks. | 69 Tests stepping out from custom element callbacks. |
| 70 </p> | 70 </p> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |