| 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); |
| 11 return result; | 11 return result; |
| 12 } | 12 } |
| 13 | 13 |
| 14 shouldBe('test("background-repeat: repeat-x;")', '"repeat-x"'); | 14 shouldBe('test("background-repeat: repeat-x;")', '"repeat-x"'); |
| 15 shouldBe('test("background-repeat: repeat-y;")', '"repeat-y"'); | 15 shouldBe('test("background-repeat: repeat-y;")', '"repeat-y"'); |
| 16 shouldBe('test("background-repeat: repeat;")', '"repeat"'); | 16 shouldBe('test("background-repeat: repeat;")', '"repeat"'); |
| 17 shouldBe('test("background-repeat: no-repeat;")', '"no-repeat"'); | 17 shouldBe('test("background-repeat: no-repeat;")', '"no-repeat"'); |
| 18 shouldBe('test("background-repeat: round;")', '"round"'); | 18 shouldBe('test("background-repeat: round;")', '"round"'); |
| 19 shouldBe('test("background-repeat: space;")', '"space"'); | 19 shouldBe('test("background-repeat: space;")', '"space"'); |
| 20 | 20 |
| 21 shouldBe('test("background-repeat: repeat repeat;")', '"repeat"'); | 21 shouldBe('test("background-repeat: repeat repeat;")', '"repeat"'); |
| 22 shouldBe('test("background-repeat: no-repeat space;")', '"no-repeat space"'); | 22 shouldBe('test("background-repeat: no-repeat space;")', '"no-repeat space"'); |
| 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 50")',
'"round"'); | 30 shouldBe('test("background: purple url(resources/gradient.gif) round left 50px")
', '"round"'); |
| 31 shouldBe('test("background: purple url(resources/gradient.gif) space 25 25")', '
"space"'); | 31 shouldBe('test("background: purple url(resources/gradient.gif) space 25px 25px")
', '"space"'); |
| 32 | 32 |
| 33 shouldBe('test("background-repeat: 45;")', 'null'); | 33 shouldBe('test("background-repeat: 45;")', 'null'); |
| 34 shouldBe('test("background-repeat: coconut;")', 'null'); | 34 shouldBe('test("background-repeat: coconut;")', 'null'); |
| OLD | NEW |