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 11 matching lines...) Expand all Loading... |
22 if (eval("element.style." + jsName) !== value) { | 22 if (eval("element.style." + jsName) !== value) { |
23 log("FAIL: element.style." + jsName + " is not '" + value + "' after
setting style to " + element.getAttribute("style") + "."); | 23 log("FAIL: element.style." + jsName + " is not '" + value + "' after
setting style to " + element.getAttribute("style") + "."); |
24 pass = false; | 24 pass = false; |
25 } | 25 } |
26 | 26 |
27 if (pass) | 27 if (pass) |
28 log("PASS: " + alias + " is an alias for " + name); | 28 log("PASS: " + alias + " is an alias for " + name); |
29 } | 29 } |
30 | 30 |
31 testEpubProperty("caption-side", "-epub-caption-side", "captionSide", "epubC
aptionSide", "bottom"); | 31 testEpubProperty("caption-side", "-epub-caption-side", "captionSide", "epubC
aptionSide", "bottom"); |
32 testEpubProperty("-webkit-hyphens", "-epub-hyphens", "webkitHyphens", "epubH
yphens", "manual"); | |
33 testEpubProperty("-webkit-text-combine", "-epub-text-combine", "webkitTextCo
mbine", "epubTextCombine", "horizontal"); | 32 testEpubProperty("-webkit-text-combine", "-epub-text-combine", "webkitTextCo
mbine", "epubTextCombine", "horizontal"); |
34 testEpubProperty("-webkit-text-emphasis-style", "-epub-text-emphasis-style",
"webkitTextEmphasisStyle", "epubTextEmphasisStyle", "open sesame"); | 33 testEpubProperty("-webkit-text-emphasis-style", "-epub-text-emphasis-style",
"webkitTextEmphasisStyle", "epubTextEmphasisStyle", "open sesame"); |
35 testEpubProperty("-webkit-text-emphasis-color", "-epub-text-emphasis-color",
"webkitTextEmphasisColor", "epubTextEmphasisColor", "red"); | 34 testEpubProperty("-webkit-text-emphasis-color", "-epub-text-emphasis-color",
"webkitTextEmphasisColor", "epubTextEmphasisColor", "red"); |
36 testEpubProperty("-webkit-text-orientation", "-epub-text-orientation", "webk
itTextOrientation", "epubTextOrientation", "upright"); | 35 testEpubProperty("-webkit-text-orientation", "-epub-text-orientation", "webk
itTextOrientation", "epubTextOrientation", "upright"); |
37 testEpubProperty("text-transform", "-epub-text-transform", "textTransform",
"epubTextTransform", "uppercase"); | 36 testEpubProperty("text-transform", "-epub-text-transform", "textTransform",
"epubTextTransform", "uppercase"); |
38 testEpubProperty("word-break", "-epub-word-break", "wordBreak", "epubWordBre
ak", "break-all"); | 37 testEpubProperty("word-break", "-epub-word-break", "wordBreak", "epubWordBre
ak", "break-all"); |
39 testEpubProperty("-webkit-writing-mode", "-epub-writing-mode", "webkitWritin
gMode", "epubWritingMode", "vertical-rl"); | 38 testEpubProperty("-webkit-writing-mode", "-epub-writing-mode", "webkitWritin
gMode", "epubWritingMode", "vertical-rl"); |
40 </script> | 39 </script> |
OLD | NEW |