Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / compositorworker / compositor-proxy-disconnect-worker.html
blob2695b45df7b59c44165f4d8c225307ffcccda406
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(function() {
8 function processMessage(event) {
9 var message = event.data;
10 assert_equals('NoModificationAllowedError', message);
11 test.done();
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().");
19 </script>