OLD | NEW |
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 Loading... |
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;")', ''); |
OLD | NEW |