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> |