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

Side by Side Diff: LayoutTests/fast/backgrounds/repeat/script-tests/parsing-background-repeat.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 unified diff | Download patch
OLDNEW
1 description("This tests checks that all of the input values for background-repea t parse correctly."); 1 description("This tests checks that all of the input values for background-repea t parse correctly.");
2 2
3 function test(value) 3 function test(value)
4 { 4 {
5 var div = document.createElement("div"); 5 var div = document.createElement("div");
6 div.setAttribute("style", value); 6 div.setAttribute("style", value);
7 document.body.appendChild(div); 7 document.body.appendChild(div);
8 8
9 var result = div.style.getPropertyValue("background-repeat"); 9 var result = div.style.getPropertyValue("background-repeat");
10 document.body.removeChild(div); 10 document.body.removeChild(div);
(...skipping 12 matching lines...) Expand all
23 shouldBe('test("background-repeat: round round;")', '"round"'); 23 shouldBe('test("background-repeat: round round;")', '"round"');
24 shouldBe('test("background-repeat: space repeat;")', '"space repeat"'); 24 shouldBe('test("background-repeat: space repeat;")', '"space repeat"');
25 25
26 shouldBe('test("background: purple url(resources/gradient.gif) repeat-x top left ")', '"repeat-x"'); 26 shouldBe('test("background: purple url(resources/gradient.gif) repeat-x top left ")', '"repeat-x"');
27 shouldBe('test("background: purple url(resources/gradient.gif) repeat-y 50% 50%" )', '"repeat-y"'); 27 shouldBe('test("background: purple url(resources/gradient.gif) repeat-y 50% 50%" )', '"repeat-y"');
28 shouldBe('test("background: purple url(resources/gradient.gif) repeat center")', '"repeat"'); 28 shouldBe('test("background: purple url(resources/gradient.gif) repeat center")', '"repeat"');
29 shouldBe('test("background: purple url(resources/gradient.gif) no-repeat 12px")' , '"no-repeat"'); 29 shouldBe('test("background: purple url(resources/gradient.gif) no-repeat 12px")' , '"no-repeat"');
30 shouldBe('test("background: purple url(resources/gradient.gif) round left 50px") ', '"round"'); 30 shouldBe('test("background: purple url(resources/gradient.gif) round left 50px") ', '"round"');
31 shouldBe('test("background: purple url(resources/gradient.gif) space 25px 25px") ', '"space"'); 31 shouldBe('test("background: purple url(resources/gradient.gif) space 25px 25px") ', '"space"');
32 32
33 shouldBe('test("background-repeat: 45;")', 'null'); 33 shouldBeEqualToString('test("background-repeat: 45;")', '');
34 shouldBe('test("background-repeat: coconut;")', 'null'); 34 shouldBeEqualToString('test("background-repeat: coconut;")', '');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698