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

Unified Diff: LayoutTests/inspector/elements/styles/styles-commit-editing.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/styles-commit-editing.html
diff --git a/LayoutTests/inspector/elements/styles/styles-commit-editing.html b/LayoutTests/inspector/elements/styles/styles-commit-editing.html
deleted file mode 100644
index bb4275ba4f6202124f2f282668f819ed4f169811..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/styles-commit-editing.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
-
- var treeElement;
- var treeOutline;
- var section;
-
- InspectorTest.runTestSuite([
- function selectInitialNode(next)
- {
- InspectorTest.selectNodeAndWaitForStyles("inspected", next);
- },
-
- function testFreeFlowEdit(next)
- {
- InspectorTest.dumpSelectedElementStyles(true);
- treeElement = InspectorTest.getElementStylePropertyTreeItem("color");
- treeOutline = treeElement.treeOutline;
-
- treeElement.startEditing();
- treeElement.nameElement.textContent = "color";
- treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
-
- // Update incrementally, do not commit.
- treeElement.valueElement.textContent = "rgb(/*";
- InspectorTest.waitForStyleApplied(next);
- treeElement.kickFreeFlowStyleEditForTest();
- },
-
- function testCommitEditing(next)
- {
- // Commit editing.
- treeElement.valueElement.textContent = "green";
- treeElement.valueElement.firstChild.select();
- InspectorTest.addSniffer(WebInspector.StylePropertiesSection.prototype, "_afterUpdateFinishedForTest", next);
- treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- },
-
- function testNewPropertyEditorIsCreated(next)
- {
- var blankTreeElement = treeOutline.rootElement().childAt(1);
- if (!WebInspector.isBeingEdited(blankTreeElement.nameElement)) {
- InspectorTest.addResult("No new property editor active!");
- InspectorTest.completeTest();
- return;
- }
-
- // Test Styles pane editor looping.
- InspectorTest.addSniffer(WebInspector.StylePropertiesSection.prototype, "_afterUpdateFinishedForTest", next);
- blankTreeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- },
-
- function testCycleThroughPropertyEditing(next)
- {
- if (!WebInspector.isBeingEdited(treeOutline.firstChild().nameElement)) {
- InspectorTest.addResult("Original property name editor not active!");
- InspectorTest.completeTest();
- return;
- }
-
- InspectorTest.selectNodeWithId("other", next);
- },
-
- function testNodeStyles(next)
- {
- InspectorTest.selectNodeAndWaitForStyles("inspected", next);
- },
-
- function dumpStyles(next)
- {
- InspectorTest.addResult("After append:");
- InspectorTest.dumpSelectedElementStyles(true);
- next();
- }
- ]);
-
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that editing is canceled properly after incremental editing.
-</p>
-
-<div id="inspected" style="color: red">Text</div>
-<div id="other"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698