Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <div id='container'></div> | |
|
esprehn
2015/03/29 04:44:56
double quotes? same with the other test, it's nice
sadrul
2015/03/30 16:07:45
Done.
| |
| 3 <script src="../../resources/testharness.js"></script> | |
| 4 <script src="../../resources/testharnessreport.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 var test = async_test("This test checks that a compositor proxy can be mutated f rom the compositor worker thread."); | |
| 8 | |
| 9 function processMessage(msg) { | |
| 10 assert_equals('success', msg.data); | |
| 11 test.done(); | |
| 12 } | |
| 13 | |
| 14 var worker = new CompositorWorker('resources/proxy-mutate.js'); | |
| 15 worker.onmessage = processMessage; | |
| 16 var proxy = new CompositorProxy(document.getElementById('container'), ['opacity' ]); | |
| 17 assert_true(proxy.supports('opacity')); | |
| 18 assert_false(proxy.supports('touch')); | |
| 19 assert_false(proxy.supports('transform')); | |
| 20 assert_false(proxy.supports('scrollTop')); | |
| 21 worker.postMessage([proxy, 'opacity']); | |
| 22 | |
| 23 </script> | |
| OLD | NEW |