Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: LayoutTests/inspector/elements/styles/page-reload-update-sidebar.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698