OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <style> |
| 6 /* |
| 7 Give some rules below something to override in order to test |
| 8 that they really are being parsed |
| 9 */ |
| 10 .defnone { |
| 11 touch-action: none; |
| 12 } |
| 13 </style> |
| 14 </head> |
| 15 <body> |
| 16 <p id="description"></p> |
| 17 <div class="test" id="default" expected="auto"></div> |
| 18 <div class="test defnone" id="stylesheet-none" expected="none"></div> |
| 19 <div class="test defnone" id="explicit-auto" style="touch-action: auto;" expecte
d="auto"></div> |
| 20 <div class="test" id="explicit-none" style="touch-action: none;" expected="none"
></div> |
| 21 <div class="test" id="explicit-invalid" style="touch-action: bogus;" expected="a
uto"></div> |
| 22 <div style="touch-action: none;"> |
| 23 <div class="test" id="not-inherited" expected="auto"></div> |
| 24 <div class="test" id="inherit" style="touch-action: inherit;" expected="none">
</div> |
| 25 </div> |
| 26 <div class="test defnone" id="initial" style="touch-action: initial;" expected="
auto"></div> |
| 27 |
| 28 <div id="console"></div> |
| 29 <script> |
| 30 description("Test the parsing and application of the touch-action property."); |
| 31 |
| 32 var tests = document.querySelectorAll('.test'); |
| 33 var style; |
| 34 for (var i = 0; i < tests.length; i++) { |
| 35 debug('Test case: ' + tests[i].id); |
| 36 style = window.getComputedStyle(tests[i]); |
| 37 shouldBeEqualToString('style.touchAction', tests[i].attributes.expected.value)
; |
| 38 debug(''); |
| 39 } |
| 40 |
| 41 successfullyParsed = true; |
| 42 </script> |
| 43 <script src="../js/resources/js-test-post.js"></script> |
| 44 </body> |
| 45 </html> |
OLD | NEW |