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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html

Issue 713613002: Don't require getPropertyCSSValue in inline-style-allowed-while-cloning-objects.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html b/LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html
index d03a3f9336fccb15de77f7409c4abf1a72d58622..b20890119f0e78a68b2b43b52bdc260abd078507 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects.html
@@ -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");
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698