| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <div id="container"></div> | 2 <div id="container"></div> |
| 3 <script src="../../resources/testharness.js"></script> | 3 <script src="../../../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> | 4 <script src="../../../../resources/testharnessreport.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 var test = async_test("This test checks that a compositor proxy can be mutated f
rom the compositor worker thread."); | 7 var test = async_test("This test checks that a compositor proxy can be mutated f
rom the compositor worker thread."); |
| 8 | 8 |
| 9 function processMessage(msg) { | 9 function processMessage(msg) { |
| 10 assert_equals('success', msg.data); | 10 assert_equals('success', msg.data); |
| 11 test.done(); | 11 test.done(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 var worker = new CompositorWorker('resources/proxy-mutate.js'); | 14 var worker = new CompositorWorker('resources/proxy-mutate.js'); |
| 15 worker.onmessage = processMessage; | 15 worker.onmessage = processMessage; |
| 16 var proxy = new CompositorProxy(document.getElementById('container'), ['opacity'
]); | 16 var proxy = new CompositorProxy(document.getElementById('container'), ['opacity'
]); |
| 17 assert_true(proxy.supports('opacity')); | 17 assert_true(proxy.supports('opacity')); |
| 18 assert_false(proxy.supports('touch')); | 18 assert_false(proxy.supports('touch')); |
| 19 assert_false(proxy.supports('transform')); | 19 assert_false(proxy.supports('transform')); |
| 20 assert_false(proxy.supports('scrollTop')); | 20 assert_false(proxy.supports('scrollTop')); |
| 21 worker.postMessage([proxy, 'opacity']); | 21 worker.postMessage([proxy, 'opacity']); |
| 22 | 22 |
| 23 </script> | 23 </script> |
| OLD | NEW |