2 <div id=
"container"></div>
3 <script src=
"../../resources/testharness.js"></script>
4 <script src=
"../../resources/testharnessreport.js"></script>
7 var test
= async_test("This test checks that a compositor proxy can be mutated from the compositor worker thread.");
9 function processMessage(msg
) {
10 assert_equals('success', msg
.data
);
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']);