| Index: LayoutTests/fast/compositorworker/compositor-proxy-disconnect.html
|
| diff --git a/LayoutTests/fast/compositorworker/compositor-proxy-disconnect.html b/LayoutTests/fast/compositorworker/compositor-proxy-disconnect.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03991f84d5b6f040d26c6db6923af42436581c1b
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/compositorworker/compositor-proxy-disconnect.html
|
| @@ -0,0 +1,16 @@
|
| +<!DOCTYPE html>
|
| +<div id="container"></div>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +test(function() {
|
| + var first = new CompositorWorker('resources/proxy-echo.js');
|
| + var proxy = new CompositorProxy(document.getElementById('container'), ['opacity']);
|
| + first.postMessage(proxy);
|
| +
|
| + proxy.disconnect();
|
| + assert_throws("DataCloneError", function() { first.postMessage(proxy); });
|
| +}, "This test checks that an element's compositor proxy can't be sent across via post-message after disconnect().");
|
| +
|
| +</script>
|
|
|