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

Unified Diff: LayoutTests/fast/css/shorthand-setProperty-important.html

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed changes from imported/csswg-test Created 5 years, 4 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/fast/css/shorthand-setProperty-important.html
diff --git a/LayoutTests/fast/css/shorthand-setProperty-important.html b/LayoutTests/fast/css/shorthand-setProperty-important.html
index 0e3ff4a090ea8f828e40ae869c1609b69c3c2816..c0e00ca859eaaa1f61c83e8dfaaf90949ccc8c69 100644
--- a/LayoutTests/fast/css/shorthand-setProperty-important.html
+++ b/LayoutTests/fast/css/shorthand-setProperty-important.html
@@ -19,12 +19,12 @@ e = document.getElementById('test');
// Test "important" strictness
e.style.borderBottomStyle = "";
e.style.setProperty("border-bottom-style", "solid", "!important");
-shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
+shouldBeEqualToString("e.style.getPropertyValue('border-bottom-style')", "");
shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
e.style.borderBottomStyle = "";
e.style.setProperty("border-bottom-style", "solid", "very important");
-shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
+shouldBeEqualToString("e.style.getPropertyValue('border-bottom-style')", "");
shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
e.style.borderBottomStyle = "";
@@ -34,12 +34,12 @@ shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'");
e.style.borderBottomStyle = "";
e.style.setProperty("border-bottom-style", "solid", "random");
-shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
+shouldBeEqualToString("e.style.getPropertyValue('border-bottom-style')", "");
shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
e.style.borderBottomStyle = "";
e.style.setProperty("border-bottom-style", "solid", "undefined");
-shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
+shouldBeEqualToString("e.style.getPropertyValue('border-bottom-style')", "");
shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
e.style.borderBottomStyle = "";

Powered by Google App Engine
This is Rietveld 408576698