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