OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <div id="container"></div> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 |
| 7 test(function() { |
| 8 var first = new CompositorWorker('resources/proxy-echo.js'); |
| 9 var proxy = new CompositorProxy(document.getElementById('container'), ['opac
ity']); |
| 10 first.postMessage(proxy); |
| 11 |
| 12 proxy.disconnect(); |
| 13 assert_throws("DataCloneError", function() { first.postMessage(proxy); }); |
| 14 }, "This test checks that an element's compositor proxy can't be sent across via
post-message after disconnect()."); |
| 15 |
| 16 </script> |
OLD | NEW |