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

Unified Diff: LayoutTests/inspector/elements/styles/undo-add-property.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/undo-add-property.html
diff --git a/LayoutTests/inspector/elements/styles/undo-add-property.html b/LayoutTests/inspector/elements/styles/undo-add-property.html
deleted file mode 100644
index 886fffaba09f5be1e82425ac809d59efce579bc3..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/undo-add-property.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-
-<style>
-.container {
- font-weight: bold
-}
-</style>
-
-<script>
-
-function test()
-{
- InspectorTest.selectNodeAndWaitForStyles("container", testAppendProperty);
-
- function testAppendProperty()
- {
- InspectorTest.addResult("=== Last property ===");
- testAddProperty("margin-left: 2px", undefined, testInsertBegin);
- }
-
- function testInsertBegin()
- {
- InspectorTest.addResult("=== First property ===");
- testAddProperty("margin-top: 0px", 0, testInsertMiddle);
- }
-
- function testInsertMiddle()
- {
- InspectorTest.addResult("=== Middle property ===");
- testAddProperty("margin-right: 1px", 1, InspectorTest.completeTest.bind(InspectorTest));
- }
-
- function testAddProperty(propertyText, index, callback)
- {
- InspectorTest.addResult("(Initial value)");
- InspectorTest.dumpSelectedElementStyles(true);
-
- var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weight");
- var treeElement = treeItem.section().addNewBlankProperty(index);
- treeElement.applyStyleText(propertyText, true);
- InspectorTest.waitForStyles("container", step1);
-
- function step1()
- {
- InspectorTest.addResult("(After adding property)");
- InspectorTest.dumpSelectedElementStyles(true);
-
- InspectorTest.domModel.undo();
- InspectorTest.selectNodeAndWaitForStyles("other", step2);
- }
-
- function step2()
- {
- InspectorTest.addResult("(After undo)");
- InspectorTest.dumpSelectedElementStyles(true);
-
- InspectorTest.domModel.redo();
- InspectorTest.selectNodeAndWaitForStyles("container", step3);
- }
-
- function step3()
- {
- InspectorTest.addResult("(After redo)");
- InspectorTest.dumpSelectedElementStyles(true);
- callback();
- }
- }
-}
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that adding a property is undone properly.
-</p>
-
-<div id="container" class="container"></div>
-<div id="other" class="container"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698