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

Unified Diff: LayoutTests/fast/css/script-tests/background-clip-text.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/css/script-tests/background-clip-text.js
diff --git a/LayoutTests/fast/css/script-tests/background-clip-text.js b/LayoutTests/fast/css/script-tests/background-clip-text.js
index 98c958f10f89c16467bd57de4c25202518fd754e..76a6ceebb90405abd18a228eda607702be50d54c 100644
--- a/LayoutTests/fast/css/script-tests/background-clip-text.js
+++ b/LayoutTests/fast/css/script-tests/background-clip-text.js
@@ -8,29 +8,29 @@ function test(declaration, property)
var div = document.createElement("div");
div.setAttribute("style", declaration);
document.body.appendChild(div);
-
+
var result = div.style.getPropertyValue(property);
document.body.removeChild(div);
return result;
}
shouldBe('test("background-clip: -webkit-text", "background-clip")', '"-webkit-text"');
-shouldBe('test("background-clip: -webkit-text", "-webkit-background-clip")', 'null');
+shouldBeEqualToString('test("background-clip: -webkit-text", "-webkit-background-clip")', '');
shouldBe('test("background-clip: content-box", "background-clip")', '"content-box"');
shouldBe('test("background-clip: padding-box", "background-clip")', '"padding-box"');
shouldBe('test("background-clip: border-box", "background-clip")', '"border-box"');
-shouldBe('test("background-clip: text", "background-clip")', 'null');
-shouldBe('test("background-clip: text", "-webkit-background-clip")', 'null');
+shouldBeEqualToString('test("background-clip: text", "background-clip")', '');
+shouldBeEqualToString('test("background-clip: text", "-webkit-background-clip")', '');
-shouldBe('test("-webkit-background-clip: -webkit-text", "background-clip")', 'null');
+shouldBeEqualToString('test("-webkit-background-clip: -webkit-text", "background-clip")', '');
shouldBe('test("-webkit-background-clip: -webkit-text", "-webkit-background-clip")', '"-webkit-text"');
-shouldBe('test("-webkit-background-clip: text", "background-clip")', 'null');
+shouldBeEqualToString('test("-webkit-background-clip: text", "background-clip")', '');
shouldBe('test("-webkit-background-clip: text", "-webkit-background-clip")', '"text"');
-shouldBe('test("background: url() padding-box", "-webkit-background-clip")', 'null');
+shouldBeEqualToString('test("background: url() padding-box", "-webkit-background-clip")', '');
-shouldBe('test("-webkit-mask: url() ", "background-clip")', 'null');
+shouldBeEqualToString('test("-webkit-mask: url() ", "background-clip")', '');
shouldBe('test("background: url() ", "background-clip")', '"initial"');
shouldBe('test("background: url() padding-box", "background-clip")', '"padding-box"');

Powered by Google App Engine
This is Rietveld 408576698