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

Unified Diff: LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js

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/backgrounds/size/resources/parsing-background-size-values.js
diff --git a/LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js b/LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js
index 86f61d1bed8820c01da8ff8ee9a3bca2bae622bc..d1da0b55f9d2de20496c0e62679e958b4b91e672 100644
--- a/LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js
+++ b/LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js
@@ -13,7 +13,7 @@ function test(value)
shouldBe('test("background-size: contain;")', '"contain"');
shouldBe('test("background-size: cover;")', '"cover"');
-shouldBe('test("background-size: 100 100;")', 'null');
+shouldBeEqualToString('test("background-size: 100 100;")', '');
shouldBe('test("background-size: 100px 100px;")', '"100px 100px"');
shouldBe('test("background-size: auto 50px;")', '"auto 50px"');
shouldBe('test("background-size: 50px auto;")', '"50px"');
@@ -23,10 +23,10 @@ shouldBe('test("background-size: 4em auto;")', '"4em"');
shouldBe('test("background-size: 5em;")', '"5em"');
shouldBe('test("-webkit-background-size: 5em ;")', '"5em 5em"');
-shouldBe('test("background-size: 100px 100px 100px;")', 'null');
-shouldBe('test("background-size: coconut;")', 'null');
+shouldBeEqualToString('test("background-size: 100px 100px 100px;")', '');
+shouldBeEqualToString('test("background-size: coconut;")', '');
-shouldBe('test("background-size: 100px,;")', 'null');
+shouldBeEqualToString('test("background-size: 100px,;")', '');
shouldBe('test("background-size: 100px, 50%;")', '"100px, 50%"');
shouldBe('test("-webkit-background-size: 100px, 50%;")', '"100px, 50% 50%"');
shouldBe('test("background-size: 50% 100px, 2em, 100px 50%;")', '"50% 100px, 2em, 100px 50%"');

Powered by Google App Engine
This is Rietveld 408576698