Index: LayoutTests/inspector/elements/styles/page-reload-update-sidebar.html |
diff --git a/LayoutTests/inspector/elements/styles/page-reload-update-sidebar.html b/LayoutTests/inspector/elements/styles/page-reload-update-sidebar.html |
deleted file mode 100644 |
index c1349484735433c80963bb667962ce15f225c0b1..0000000000000000000000000000000000000000 |
--- a/LayoutTests/inspector/elements/styles/page-reload-update-sidebar.html |
+++ /dev/null |
@@ -1,62 +0,0 @@ |
-<html> |
-<head> |
-<script src="../../../http/tests/inspector/inspector-test.js"></script> |
-<script src="../../../http/tests/inspector/elements-test.js"></script> |
-<script> |
- |
-function removeInspectedNode() |
-{ |
- document.querySelector("#inspected").remove(); |
-} |
- |
-function test() |
-{ |
- var stylesSidebarPane = WebInspector.panels.elements.sidebarPanes.styles; |
- InspectorTest.runTestSuite([ |
- function selectInspectedNode(next) |
- { |
- InspectorTest.selectNodeAndWaitForStyles("inspected", next); |
- }, |
- |
- function startEditingAndReloadPage(next) |
- { |
- var treeElement = InspectorTest.getElementStylePropertyTreeItem("color"); |
- var currentDocumentId = stylesSidebarPane.node().ownerDocument.id; |
- treeElement.startEditing(treeElement.valueElement); |
- InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_nodeStylesUpdatedForTest", onNodeRebuilt); |
- InspectorTest.reloadPage(); |
- |
- function onNodeRebuilt(node, rebuild) |
- { |
- if (!node || node.ownerDocument.id === currentDocumentId) { |
- InspectorTest.addResult("ERROR: A rebuild update happened for the same node."); |
- InspectorTest.completeTest(); |
- return; |
- } |
- next(); |
- } |
- }, |
- |
- function onPageReloaded(next) |
- { |
- if (stylesSidebarPane._isEditingStyle) { |
- InspectorTest.addResult("StylesSidebarPane should not be locked in editing on page reload."); |
- InspectorTest.completeTest(); |
- return; |
- } |
- next(); |
- }, |
- ]); |
-} |
- |
-</script> |
-</head> |
- |
-<body onload="runTest()"> |
-<p> |
-Tests that reloading page during styles sidebar pane editing cancels editing and re-renders the |
-sidebar pane. |
-</p> |
-<div id="inspected" style="color: blue">Text</div> |
-</body> |
-</html> |