Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / compositorworker / compositor-attribute-change-worker.html
blobafea40ba2a2b4395b0bd3e84f2a203a5fd938bb0
1 <!DOCTYPE html>
2 <div id="container"></div>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <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);
11 test.done();
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']);
23 </script>