| 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/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function callback() | 8 function callback() |
| 9 { | 9 { |
| 10 return 0; | 10 return 0; |
| 11 } | 11 } |
| 12 | 12 |
| 13 function test() | 13 function test() |
| 14 { | 14 { |
| 15 InspectorTest.startDebuggerTest(step1, true); | 15 InspectorTest.startDebuggerTest(step1, true); |
| 16 | 16 |
| 17 function step1() | 17 function step1() |
| 18 { | 18 { |
| 19 WebInspector.inspectorView.showPanel("sources").then(step2); | 19 UI.inspectorView.showPanel("sources").then(step2); |
| 20 } | 20 } |
| 21 | 21 |
| 22 function step2() | 22 function step2() |
| 23 { | 23 { |
| 24 InspectorTest.nodeWithId("test", step3); | 24 InspectorTest.nodeWithId("test", step3); |
| 25 } | 25 } |
| 26 | 26 |
| 27 function step3(node) | 27 function step3(node) |
| 28 { | 28 { |
| 29 InspectorTest.assertTrue(!!node); | 29 InspectorTest.assertTrue(!!node); |
| 30 InspectorTest.evaluateInPage("setTimeout(callback, 200)", step4.bind(nul
l, node)); | 30 InspectorTest.evaluateInPage("setTimeout(callback, 200)", step4.bind(nul
l, node)); |
| 31 } | 31 } |
| 32 | 32 |
| 33 function step4(node) | 33 function step4(node) |
| 34 { | 34 { |
| 35 InspectorTest.assertTrue(!WebInspector.panels.sources.paused()); | 35 InspectorTest.assertTrue(!UI.panels.sources.paused()); |
| 36 InspectorTest.togglePause(); | 36 InspectorTest.togglePause(); |
| 37 | 37 |
| 38 // This used to skip the pause request (the test used to timeout). | 38 // This used to skip the pause request (the test used to timeout). |
| 39 node.highlight(); | 39 node.highlight(); |
| 40 | 40 |
| 41 InspectorTest.waitUntilPaused(step5); | 41 InspectorTest.waitUntilPaused(step5); |
| 42 } | 42 } |
| 43 | 43 |
| 44 function step5(callFrames) | 44 function step5(callFrames) |
| 45 { | 45 { |
| 46 InspectorTest.captureStackTrace(callFrames); | 46 InspectorTest.captureStackTrace(callFrames); |
| 47 InspectorTest.addResult("PASS: Debugger paused."); | 47 InspectorTest.addResult("PASS: Debugger paused."); |
| 48 InspectorTest.completeDebuggerTest(); | 48 InspectorTest.completeDebuggerTest(); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 </script> | 52 </script> |
| 53 </head> | 53 </head> |
| 54 | 54 |
| 55 <body onload="runTest()"> | 55 <body onload="runTest()"> |
| 56 <div id="test"></div> | 56 <div id="test"></div> |
| 57 <p> | 57 <p> |
| 58 Tests that debugger pause button works on Elements panel after a DOM node highli
ghting. <a href="https://code.google.com/p/chromium/issues/detail?id=433366">Chr
omium bug 433366</a> | 58 Tests that debugger pause button works on Elements panel after a DOM node highli
ghting. <a href="https://code.google.com/p/chromium/issues/detail?id=433366">Chr
omium bug 433366</a> |
| 59 </p> | 59 </p> |
| 60 </body> | 60 </body> |
| 61 </html> | 61 </html> |
| OLD | NEW |