tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / css / resources / parsing-color-correction.js
1 description("This tests checks that all of the input values for -webkit-color-correction parse correctly.");
2
3 function test(value)
4 {
5     var div = document.createElement("div");
6     div.setAttribute("style", value);
7     document.body.appendChild(div);
8     
9     var result = div.style.getPropertyValue("-webkit-color-correction");
10     document.body.removeChild(div);
11     return result;
12 }
13
14 shouldBe('test("-webkit-color-correction: default;")', '"default"');
15 shouldBe('test("-webkit-color-correction: sRGB;")', '"srgb"');
16 shouldBe('test("-webkit-color-correction: srgb;")', '"srgb"');
17
18 shouldBe('test("-webkit-color-correction: apple;")', 'null');
19 shouldBe('test("-webkit-color-correction: 15;")', 'null');
20 shouldBe('test("-webkit-color-correction: auto;")', 'null');