Commit 06d14c9a authored by timloh@chromium.org's avatar timloh@chromium.org

Don't require getPropertyCSSValue in inline-style-allowed-while-cloning-objects.html

As getPropertyCSSValue is no longer web-exposed we shouldn't require it
in tests so we can delete the interface.

BUG=428595

Review URL: https://codereview.chromium.org/713613002

git-svn-id: svn://svn.chromium.org/blink/trunk@184998 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5e71c9e5
......@@ -14,20 +14,20 @@ PASS node1.style.color is "red"
PASS node2.style.color is "red"
PASS node3.style.color is "green"
PASS node4.style.color is "green"
PASS window.getComputedStyle(node1).getPropertyCSSValue('background').cssText is window.getComputedStyle(node2).getPropertyCSSValue('background').cssText
PASS window.getComputedStyle(node3).getPropertyCSSValue('background').cssText is window.getComputedStyle(node4).getPropertyCSSValue('background').cssText
PASS window.getComputedStyle(node1).getPropertyCSSValue('color').cssText is window.getComputedStyle(node2).getPropertyCSSValue('color').cssText
PASS window.getComputedStyle(node3).getPropertyCSSValue('color').cssText is window.getComputedStyle(node4).getPropertyCSSValue('color').cssText
PASS window.getComputedStyle(node1).background is window.getComputedStyle(node2).background
PASS window.getComputedStyle(node3).background is window.getComputedStyle(node4).background
PASS window.getComputedStyle(node1).color is window.getComputedStyle(node2).color
PASS window.getComputedStyle(node3).color is window.getComputedStyle(node4).color
PASS ops.style.background is ""
getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText: rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box
getComputedStyle(clonedOps).background: rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box
PASS ops.style.color is "red"
PASS clonedOps.style.background is ""
PASS violetOps.style.background is "rgb(238, 130, 238)"
PASS window.getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText is window.getComputedStyle(ops).getPropertyCSSValue('background').cssText
PASS window.getComputedStyle(clonedOps).getPropertyCSSValue('color').cssText is window.getComputedStyle(ops).getPropertyCSSValue('color').cssText
getComputedStyle(violetOps).getPropertyCSSValue('background').cssText: rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box
PASS window.getComputedStyle(ops).getPropertyCSSValue('background').cssText is not window.getComputedStyle(violetOps).getPropertyCSSValue('background').cssText
PASS window.getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText is not window.getComputedStyle(violetOps).getPropertyCSSValue('background').cssText
PASS window.getComputedStyle(clonedOps).background is window.getComputedStyle(ops).background
PASS window.getComputedStyle(clonedOps).color is window.getComputedStyle(ops).color
getComputedStyle(violetOps).background: rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box
PASS window.getComputedStyle(ops).background is not window.getComputedStyle(violetOps).background
PASS window.getComputedStyle(clonedOps).background is not window.getComputedStyle(violetOps).background
PASS ops.id is "ops"
PASS ops.id is clonedOps.id
This is a div (nodes)
......
......@@ -35,11 +35,11 @@
shouldBeEqualToString("node3.style.color", "green");
shouldBeEqualToString("node4.style.color", "green");
shouldBe("window.getComputedStyle(node1).getPropertyCSSValue('background').cssText", "window.getComputedStyle(node2).getPropertyCSSValue('background').cssText");
shouldBe("window.getComputedStyle(node3).getPropertyCSSValue('background').cssText", "window.getComputedStyle(node4).getPropertyCSSValue('background').cssText");
shouldBe("window.getComputedStyle(node1).background", "window.getComputedStyle(node2).background");
shouldBe("window.getComputedStyle(node3).background", "window.getComputedStyle(node4).background");
shouldBe("window.getComputedStyle(node1).getPropertyCSSValue('color').cssText", "window.getComputedStyle(node2).getPropertyCSSValue('color').cssText");
shouldBe("window.getComputedStyle(node3).getPropertyCSSValue('color').cssText", "window.getComputedStyle(node4).getPropertyCSSValue('color').cssText");
shouldBe("window.getComputedStyle(node1).color", "window.getComputedStyle(node2).color");
shouldBe("window.getComputedStyle(node3).color", "window.getComputedStyle(node4).color");
window.ops = document.getElementById('ops');
ops.style.color = 'red';
......@@ -50,16 +50,16 @@
document.getElementsByTagName('body')[0].appendChild(clonedOps);
shouldBeEqualToString("ops.style.background", "");
debug("getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText: " + window.getComputedStyle(ops).getPropertyCSSValue('background').cssText);
debug("getComputedStyle(clonedOps).background: " + window.getComputedStyle(ops).background);
shouldBeEqualToString("ops.style.color", "red");
shouldBeEqualToString("clonedOps.style.background", "");
shouldBeEqualToString("violetOps.style.background", "rgb(238, 130, 238)");
shouldBe("window.getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText", "window.getComputedStyle(ops).getPropertyCSSValue('background').cssText");
shouldBe("window.getComputedStyle(clonedOps).getPropertyCSSValue('color').cssText", "window.getComputedStyle(ops).getPropertyCSSValue('color').cssText");
debug("getComputedStyle(violetOps).getPropertyCSSValue('background').cssText: " + window.getComputedStyle(violetOps).getPropertyCSSValue('background').cssText);
shouldNotBe("window.getComputedStyle(ops).getPropertyCSSValue('background').cssText", "window.getComputedStyle(violetOps).getPropertyCSSValue('background').cssText");
shouldNotBe("window.getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText", "window.getComputedStyle(violetOps).getPropertyCSSValue('background').cssText");
shouldBe("window.getComputedStyle(clonedOps).background", "window.getComputedStyle(ops).background");
shouldBe("window.getComputedStyle(clonedOps).color", "window.getComputedStyle(ops).color");
debug("getComputedStyle(violetOps).background: " + window.getComputedStyle(violetOps).background);
shouldNotBe("window.getComputedStyle(ops).background", "window.getComputedStyle(violetOps).background");
shouldNotBe("window.getComputedStyle(clonedOps).background", "window.getComputedStyle(violetOps).background");
shouldBeEqualToString("ops.id", "ops");
shouldBe("ops.id", "clonedOps.id");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment