2 <div id=
"container"></div>
3 <script src=
"../../resources/testharness.js"></script>
4 <script src=
"../../resources/testharnessreport.js"></script>
7 var test
= async_test(function() {
8 function processMessage(event
) {
9 var message
= event
.data
;
10 assert_equals('NoModificationAllowedError', message
);
14 var worker
= new CompositorWorker('resources/proxy-disconnect.js');
15 worker
.onmessage
= processMessage
;
16 var proxy
= new CompositorProxy(document
.getElementById('container'), ['opacity']);
17 worker
.postMessage(proxy
);
18 }, "This test checks that an element's compositor proxy cannot be mutated after disconnect().");