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

Side by Side Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-postmessage.html

Issue 1449953002: compositor-worker: Refactor CompositorWorkerManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add documentation and ASSERTS for some subtleties. Created 5 years 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
OLDNEW
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 var test = async_test("This test checks that an element's compositor proxy can b e sent from the main thread to the compositor thread."); 7 var test = async_test("This test checks that an element's compositor proxy can b e sent from the main thread to the compositor thread.");
8 8
9 var lastAttribute = ''; 9 var lastAttribute = '';
10 function checkResponse(opacity, transform) { 10 function checkResponse(opacity, transform) {
11 assert_true(opacity || transform); 11 assert_true(opacity || transform);
12 assert_not_equals(opacity, transform); 12 assert_not_equals(opacity, transform);
13 var currentAttribute = opacity ? 'opacity' : 'transform'; 13 var currentAttribute = opacity ? 'opacity' : 'transform';
14 if (lastAttribute == '') { 14 if (lastAttribute == '') {
(...skipping 22 matching lines...) Expand all
37 var second = new CompositorWorker('resources/proxy-echo.js'); 37 var second = new CompositorWorker('resources/proxy-echo.js');
38 second.onmessage = processMessage; 38 second.onmessage = processMessage;
39 proxy = new CompositorProxy(document.getElementById('container'), ['transform']) ; 39 proxy = new CompositorProxy(document.getElementById('container'), ['transform']) ;
40 assert_true(proxy.supports('transform')); 40 assert_true(proxy.supports('transform'));
41 assert_false(proxy.supports('opacity')); 41 assert_false(proxy.supports('opacity'));
42 assert_false(proxy.supports('touch')); 42 assert_false(proxy.supports('touch'));
43 assert_false(proxy.supports('scrollTop')); 43 assert_false(proxy.supports('scrollTop'));
44 second.postMessage(proxy); 44 second.postMessage(proxy);
45 45
46 </script> 46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698