Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Unified Diff: LayoutTests/fast/compositorworker/compositor-proxy-disconnect.html

Issue 1064123002: compositor-worker: Introduce CompositorProxy::disconnect(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix-win-for-realz Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/compositorworker/compositor-proxy-disconnect-worker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/compositorworker/compositor-proxy-disconnect-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698