3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/elements-test.js"></script>
9 InspectorTest
.selectNodeWithId("test-topic", step1
);
13 InspectorTest
.reloadPage(step2
);
18 InspectorTest
.runAfterPendingDispatches(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();
34 <body onload=
"runTest()">
36 Tests that elements panel preserves selected node on page refresh.