| OLD | NEW |
| 1 description("This tests checks that all of the input values for -webkit-font-smo
othing parse correctly."); | 1 description("This tests checks that all of the input values for -webkit-font-smo
othing parse correctly."); |
| 2 | 2 |
| 3 function test(value) | 3 function test(value) |
| 4 { | 4 { |
| 5 var span = document.createElement("span"); | 5 var span = document.createElement("span"); |
| 6 span.setAttribute("style", value); | 6 span.setAttribute("style", value); |
| 7 document.body.appendChild(span); | 7 document.body.appendChild(span); |
| 8 | 8 |
| 9 var result = span.style.getPropertyValue("-webkit-font-smoothing"); | 9 var result = span.style.getPropertyValue("-webkit-font-smoothing"); |
| 10 document.body.removeChild(span); | 10 document.body.removeChild(span); |
| 11 return result; | 11 return result; |
| 12 } | 12 } |
| 13 | 13 |
| 14 shouldBe('test("-webkit-font-smoothing: auto;")', '"auto"'); | 14 shouldBe('test("-webkit-font-smoothing: auto;")', '"auto"'); |
| 15 shouldBe('test("-webkit-font-smoothing: none;")', '"none"'); | 15 shouldBe('test("-webkit-font-smoothing: none;")', '"none"'); |
| 16 shouldBe('test("-webkit-font-smoothing: antialiased;")', '"antialiased"'); | 16 shouldBe('test("-webkit-font-smoothing: antialiased;")', '"antialiased"'); |
| 17 shouldBe('test("-webkit-font-smoothing: subpixel-antialiased;")', '"subpixel-ant
ialiased"'); | 17 shouldBe('test("-webkit-font-smoothing: subpixel-antialiased;")', '"subpixel-ant
ialiased"'); |
| 18 | 18 |
| 19 shouldBe('test("-webkit-font-smoothing: apple;")', 'null'); | 19 shouldBeEqualToString('test("-webkit-font-smoothing: apple;")', ''); |
| 20 shouldBe('test("-webkit-font-smoothing: 15;")', 'null'); | 20 shouldBeEqualToString('test("-webkit-font-smoothing: 15;")', ''); |
| 21 shouldBe('test("-webkit-font-smoothing: auto auto;")', 'null'); | 21 shouldBeEqualToString('test("-webkit-font-smoothing: auto auto;")', ''); |
| OLD | NEW |