Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / elements-panel-selection-on-refresh.html
blob04293180e68b0e5f18b8d14794bdf11fdb4c1e52
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>
7 function test()
9 InspectorTest.selectNodeWithId("test-topic", step1);
11 function step1()
13 InspectorTest.reloadPage(step2);
16 function step2()
18 InspectorTest.runAfterPendingDispatches(step3);
21 function step3()
23 // We should have "test-topic" element selected after refresh.
24 var selectedElement = InspectorTest.firstElementsTreeOutline().selectedTreeElement;
25 var nodeName = selectedElement ? selectedElement.node().nodeName() : "null";
26 InspectorTest.addResult("Selected element should be 'P', was: '" + nodeName + "'");
27 InspectorTest.completeTest();
31 </script>
32 </head>
34 <body onload="runTest()">
35 <p id="test-topic">
36 Tests that elements panel preserves selected node on page refresh.
37 </p>
39 </body>
40 </html>