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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/compositor-worker/visual-update.html

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 Tests that a change from the worker produces a visual update.
4 -->
5 <script>
6 window.jsTestIsAsync = true;
7 </script>
8
9 <script>
10 if (window.internals) {
11 internals.settings.setCompositorWorkerEnabled(true);
12 }
13
14 var cw;
15 onload = function() {
16 cw = new CompositorWorker('resources/visual-update.js');
17 cw.onmessage = finishTest;
18 cw.postMessage({'proxy': new CompositorProxy(document.getElementById('box'),
19 ['opacity', 'transform', 'scrollLeft', 'scrollTop'])});
20 }
21
22 function finishTest(timestamp) {
23 var box = document.getElementById('box');
24 requestAnimationFrame(function(timestamp) {
25 if (window.testRunner)
26 testRunner.notifyDone();
27 });
28 }
29 </script>
30
31 <style>
32 #box {
33 width: 100px;
34 height: 100px;
35 }
36
37 #covered, #green {
38 width: 85px;
39 height: 85px;
40 }
41
42 #box, #covered {
43 background-color: #ff8080;
44 overflow: auto;
45 }
46
47 #green {
48 position: relative;
49 left: 100px;
50 top: 100px;
51 background-color: #00ff00;
52 }
53
54 </style>
55
56 <div id="box">
57 <div id="green"></div>
58 </div>
59 <div id="covered"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698