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