1 description("This tests checks that all of the input values for -webkit-font-smoothing parse correctly.");
5 var span = document.createElement("span");
6 span.setAttribute("style", value);
7 document.body.appendChild(span);
9 var result = span.style.getPropertyValue("-webkit-font-smoothing");
10 document.body.removeChild(span);
14 shouldBe('test("-webkit-font-smoothing: auto;")', '"auto"');
15 shouldBe('test("-webkit-font-smoothing: none;")', '"none"');
16 shouldBe('test("-webkit-font-smoothing: antialiased;")', '"antialiased"');
17 shouldBe('test("-webkit-font-smoothing: subpixel-antialiased;")', '"subpixel-antialiased"');
19 shouldBeEqualToString('test("-webkit-font-smoothing: apple;")', '');
20 shouldBeEqualToString('test("-webkit-font-smoothing: 15;")', '');
21 shouldBeEqualToString('test("-webkit-font-smoothing: auto auto;")', '');