OLD | NEW |
1 <pre id="console"></pre> | 1 <pre id="console"></pre> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 | 5 |
6 function log(message) | 6 function log(message) |
7 { | 7 { |
8 document.getElementById("console").appendChild(document.createTextNode(m
essage + "\n")); | 8 document.getElementById("console").appendChild(document.createTextNode(m
essage + "\n")); |
9 } | 9 } |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 var textEmphasis = element.style.webkitTextEmphasis; | 21 var textEmphasis = element.style.webkitTextEmphasis; |
22 if (color === expectedColor && position === expectedPosition && style ==
= expectedStyle && textEmphasis === expectedTextEmphasis) | 22 if (color === expectedColor && position === expectedPosition && style ==
= expectedStyle && textEmphasis === expectedTextEmphasis) |
23 log("PASS: '" + declaration + "' parsed as ['" + color + "', '" + po
sition + "', '" + style + "', '" + textEmphasis + "']"); | 23 log("PASS: '" + declaration + "' parsed as ['" + color + "', '" + po
sition + "', '" + style + "', '" + textEmphasis + "']"); |
24 else | 24 else |
25 log("FAIL: '" + declaration + "' parsed as ['" + color + "', '" + po
sition + "', '" + style + "', '" + textEmphasis + "'] rather than ['" + expected
Color + "', '" + expectedPosition + "', '" + expectedStyle + "', '" + expectedTe
xtEmphasis + "']"); | 25 log("FAIL: '" + declaration + "' parsed as ['" + color + "', '" + po
sition + "', '" + style + "', '" + textEmphasis + "'] rather than ['" + expected
Color + "', '" + expectedPosition + "', '" + expectedStyle + "', '" + expectedTe
xtEmphasis + "']"); |
26 } | 26 } |
27 | 27 |
28 test('-webkit-text-emphasis-color: initial;', 'initial', '', ''); | 28 test('-webkit-text-emphasis-color: initial;', 'initial', '', ''); |
29 test('-webkit-text-emphasis-color: inherit;', 'inherit', '', ''); | 29 test('-webkit-text-emphasis-color: inherit;', 'inherit', '', ''); |
30 test('-webkit-text-emphasis-color: currentcolor;', 'currentcolor', '', ''); | 30 test('-webkit-text-emphasis-color: currentcolor;', 'currentcolor', '', ''); |
31 test('-webkit-text-emphasis-color: cyan;', 'rgb(0, 255, 255)', '', ''); | 31 test('-webkit-text-emphasis-color: cyan;', 'cyan', '', ''); |
32 test('-webkit-text-emphasis-color: bold;', '', '', ''); | 32 test('-webkit-text-emphasis-color: bold;', '', '', ''); |
33 test('-webkit-text-emphasis-color: 1px;', '', '', ''); | 33 test('-webkit-text-emphasis-color: 1px;', '', '', ''); |
34 test('-webkit-text-emphasis-color: "cyan";', '', '', ''); | 34 test('-webkit-text-emphasis-color: "cyan";', '', '', ''); |
35 | 35 |
36 log(""); | 36 log(""); |
37 test('-webkit-text-emphasis-position: initial;', '', 'initial', ''); | 37 test('-webkit-text-emphasis-position: initial;', '', 'initial', ''); |
38 test('-webkit-text-emphasis-position: inherit;', '', 'inherit', ''); | 38 test('-webkit-text-emphasis-position: inherit;', '', 'inherit', ''); |
39 test('-webkit-text-emphasis-position: over;', '', 'over', ''); | 39 test('-webkit-text-emphasis-position: over;', '', 'over', ''); |
40 test('-webkit-text-emphasis-position: under;', '', 'under', ''); | 40 test('-webkit-text-emphasis-position: under;', '', 'under', ''); |
41 test('-webkit-text-emphasis-position: bold;', '', '', ''); | 41 test('-webkit-text-emphasis-position: bold;', '', '', ''); |
(...skipping 30 matching lines...) Expand all Loading... |
72 test('-webkit-text-emphasis: red', 'red', '', 'initial', 'red'); | 72 test('-webkit-text-emphasis: red', 'red', '', 'initial', 'red'); |
73 test('-webkit-text-emphasis: "cheese"', 'initial', '', '"cheese"', '"cheese"
'); | 73 test('-webkit-text-emphasis: "cheese"', 'initial', '', '"cheese"', '"cheese"
'); |
74 test('-webkit-text-emphasis: red "cheese"', 'red', '', '"cheese"', "\"cheese
\" red"); | 74 test('-webkit-text-emphasis: red "cheese"', 'red', '', '"cheese"', "\"cheese
\" red"); |
75 test('-webkit-text-emphasis: "cheese" red', 'red', '', '"cheese"', "\"cheese
\" red"); | 75 test('-webkit-text-emphasis: "cheese" red', 'red', '', '"cheese"', "\"cheese
\" red"); |
76 test('-webkit-text-emphasis: filled sesame red', 'red', '', 'filled sesame',
'filled sesame red'); | 76 test('-webkit-text-emphasis: filled sesame red', 'red', '', 'filled sesame',
'filled sesame red'); |
77 test('-webkit-text-emphasis: red filled sesame', 'red', '', 'filled sesame',
'filled sesame red'); | 77 test('-webkit-text-emphasis: red filled sesame', 'red', '', 'filled sesame',
'filled sesame red'); |
78 test('-webkit-text-emphasis: filled red sesame', '', '', ''); | 78 test('-webkit-text-emphasis: filled red sesame', '', '', ''); |
79 test('-webkit-text-emphasis: red sesame filled', 'red', '', 'filled sesame',
'filled sesame red'); | 79 test('-webkit-text-emphasis: red sesame filled', 'red', '', 'filled sesame',
'filled sesame red'); |
80 test('-webkit-text-emphasis: sesame filled red', 'red', '', 'filled sesame',
'filled sesame red'); | 80 test('-webkit-text-emphasis: sesame filled red', 'red', '', 'filled sesame',
'filled sesame red'); |
81 </script> | 81 </script> |
OLD | NEW |