Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / pause-on-elements-panel.html
blob3ba4d835de90fcce8c5752806c354e03747ad1de
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>
8 function callback()
10 return 0;
13 function test()
15 InspectorTest.startDebuggerTest(step1, true);
17 function step1()
19 WebInspector.inspectorView.showPanel("sources").then(step2);
22 function step2()
24 InspectorTest.nodeWithId("test", step3);
27 function step3(node)
29 InspectorTest.assertTrue(!!node);
30 InspectorTest.evaluateInPage("setTimeout(callback, 200)", step4.bind(null, node));
33 function step4(node)
35 InspectorTest.assertTrue(!WebInspector.panels.sources.paused());
36 WebInspector.panels.sources.togglePause();
38 // This used to skip the pause request (the test used to timeout).
39 node.highlight();
41 InspectorTest.waitUntilPaused(step5);
44 function step5(callFrames)
46 InspectorTest.captureStackTrace(callFrames);
47 InspectorTest.addResult("PASS: Debugger paused.");
48 InspectorTest.completeDebuggerTest();
52 </script>
53 </head>
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 highlighting. <a href="https://code.google.com/p/chromium/issues/detail?id=433366">Chromium bug 433366</a>
59 </p>
60 </body>
61 </html>