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

Side by Side 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: self-nit 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698