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

Unified Diff: LayoutTests/inspector/elements/styles/color-swatch.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/color-swatch.html
diff --git a/LayoutTests/inspector/elements/styles/color-swatch.html b/LayoutTests/inspector/elements/styles/color-swatch.html
deleted file mode 100644
index e755d476eb8fbf18103747881915606a48609efa..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/color-swatch.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<style>
-#inspected {
- color: red;
-}
-</style>
-<script>
-function test() {
- InspectorTest.runTestSuite([
- function selectNode(next)
- {
- InspectorTest.selectNodeAndWaitForStylesWithComputed("inspected", next);
- },
-
- function testColorSwatchInMatchRules(next)
- {
- var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("color");
- InspectorTest.addResult("Initial color value: " + treeItem.valueElement.textContent);
- var swatch = treeItem.valueElement.querySelector("span[is=color-swatch]").shadowRoot.querySelector(".color-swatch-inner");
- swatch.dispatchEvent(createShiftClick());
- InspectorTest.addResult("After shift-click: " + treeItem.valueElement.textContent);
- InspectorTest.addResult("Has popover before click: " + !!document.querySelector("body > .popover-container"));
-
- swatch.click();
- InspectorTest.addResult("Has popover after click: " + !!document.querySelector("body > .popover-container"));
- next();
- },
-
- function testColorSwatchInComputedRules(next)
- {
- var computedProperty = InspectorTest.findComputedPropertyWithName("color");
- var computedPropertyValue = computedProperty.querySelector(".value");
- InspectorTest.addResult("Initial color value: " + computedPropertyValue.textContent);
- var swatch = computedPropertyValue.querySelector("span[is=color-swatch]").shadowRoot.querySelector(".color-swatch-inner");
- swatch.dispatchEvent(createShiftClick());
- InspectorTest.addResult("After shift-click color value: " + computedPropertyValue.textContent);
- next();
- }
- ]);
-
- function createShiftClick()
- {
- var event = document.createEvent("MouseEvent");
- event.initMouseEvent("click", true, true, null, 1, 0, 0, 0, 0, false, false, true, false, 0, null);
- return event;
- }
-}
-</script>
-</head>
-
-<body onload="runTest()">
-<p>The patch verifies that color swatch functions properly in matched and computed styles. crbug.com/461363</p>
-
-<div id="inspected">Inspected div</div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698