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

Unified Diff: LayoutTests/inspector/elements/styles/paste-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/paste-property.html
diff --git a/LayoutTests/inspector/elements/styles/paste-property.html b/LayoutTests/inspector/elements/styles/paste-property.html
deleted file mode 100644
index 1904fb8a01c572ed13b80f199d4168f952d8eb02..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/paste-property.html
+++ /dev/null
@@ -1,80 +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()
-{
- InspectorTest.selectNodeAndWaitForStyles("inspected", pasteFirstProperty);
-
- function pasteFirstProperty()
- {
- InspectorTest.addResult("Before pasting:");
- InspectorTest.dumpSelectedElementStyles(true);
- var section = InspectorTest.inlineStyleSection();
-
- var treeElement = section.addNewBlankProperty(0);
- pasteProperty(treeElement, "margin-left: 1px", pasteTwoProperties);
- }
-
- function pasteTwoProperties()
- {
- InspectorTest.addResult("After pasting 'margin-left: 1px':");
- InspectorTest.dumpSelectedElementStyles(true);
-
- var treeElement = InspectorTest.inlineStyleSection().addNewBlankProperty(2);
- pasteProperty(treeElement, "margin-top: 1px; color: red;", pasteOverExistingProperty);
- }
-
- function pasteOverExistingProperty()
- {
- InspectorTest.addResult("After pasting 'margin-top: 1px; color: red;':");
- InspectorTest.dumpSelectedElementStyles(true);
-
- var treeElement = InspectorTest.getElementStylePropertyTreeItem("margin-top");
- pasteProperty(treeElement, "foo: bar; moo: zoo", dumpAndComplete);
- }
-
- function dumpAndComplete()
- {
- InspectorTest.addResult("After pasting 'foo: bar; moo: zoo' over 'margin-top':");
- InspectorTest.dumpSelectedElementStyles(true);
-
- InspectorTest.completeTest();
- }
-
- function pasteProperty(treeElement, propertyText, callback)
- {
- treeElement.nameElement.textContent = propertyText;
- treeElement.startEditing();
-
- document.execCommand("SelectAll");
- document.execCommand("Copy");
- InspectorTest.waitForStyleApplied(reloadStyles.bind(this, callback));
- document.execCommand("Paste");
- }
-
- function reloadStyles(callback) {
- InspectorTest.selectNodeAndWaitForStyles("other", otherCallback);
-
- function otherCallback()
- {
- InspectorTest.selectNodeAndWaitForStyles("inspected", callback);
- }
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that splitting properties when pasting works.
-</p>
-
-<div id="inspected" style="font-size: 12px">Text</div>
-<div id="other"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698