Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 3 --> | |
|
esprehn
2015/12/07 20:54:24
remove comment?
Ian Vollick
2015/12/08 00:16:44
Whoops, done.
| |
| 4 <style> | |
| 5 #container { | |
| 6 width: 100px; | |
| 7 height: 100px; | |
| 8 border: 1px solid black; | |
| 9 overflow: scroll; | |
| 10 } | |
| 11 | |
| 12 #scrolled { | |
| 13 width: 80px; | |
| 14 height: 200px; | |
| 15 background: blue; | |
| 16 } | |
| 17 </style> | |
| 18 <div id="container"> | |
| 19 <div id="scrolled"></div> | |
| 20 </div> | |
| 21 <script src="../../../../resources/testharness.js"></script> | |
| 22 <script src="../../../../resources/testharnessreport.js"></script> | |
| 23 <script> | |
| 24 test(function() { | |
| 25 var proxy = new CompositorProxy(document.getElementById('container'), ['opac ity', 'transform', 'scrollTop', 'scrollLeft']); | |
| 26 assert_true(proxy.supports('opacity')); | |
| 27 assert_false(proxy.supports('opacit')); | |
| 28 assert_false(proxy.supports('opacitya')); | |
| 29 | |
| 30 assert_true(proxy.supports('transform')); | |
| 31 assert_false(proxy.supports('transfor')); | |
| 32 assert_false(proxy.supports('transforma')); | |
| 33 | |
| 34 assert_true(proxy.supports('scrollLeft')); | |
| 35 assert_false(proxy.supports('scrollLef')); | |
| 36 assert_false(proxy.supports('scrollLefta')); | |
| 37 | |
| 38 assert_true(proxy.supports('scrollTop')); | |
| 39 assert_false(proxy.supports('scrollTo')); | |
| 40 assert_false(proxy.supports('scrollTopa')); | |
| 41 | |
| 42 assert_false(proxy.supports('あ')); | |
| 43 }, "This test ensures that supports correctly handles queries with strings that a prefix of a property or vice versa."); | |
| 44 </script> | |
| OLD | NEW |