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

Side by Side Diff: LayoutTests/fast/events/touch/compositor-touch-hit-rects-trigger-commit.html

Issue 46163008: Revert "Re-land deferred compositing updates with fixed assumptions" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <html>
3 <head>
4
5 <style>
6 #touchElement {
7 width: 20px;
8 height: 20px;
9 }
10 </style>
11
12 </head>
13 <body>
14
15 <p id="description">
16 This tests checks that deferred compositing is still invoked when nothing except touch hit rects change.
17 The trickiness is that touch hit rects cannot be recomputed until after composit ing is updated, so
18 there is a risk of accidentally skipping updating touch rects unless we ping the compositor correctly.
19 </p>
20
21 <div id="touchElement"></div>
22
23 <pre id="result"></pre>
24
25 <script>
26
27 function dummyListener() { }
28
29 if (window.testRunner)
30 testRunner.dumpAsText();
31
32 if (window.internals) {
33 window.internals.settings.setForceCompositingMode(true);
34 window.internals.forceCompositingUpdate(document);
35 document.getElementById("touchElement").addEventListener("touchmove", dummyL istener, false);
36 window.internals.forceCompositingUpdate(document);
37
38 var rects = window.internals.touchEventTargetLayerRects(document);
39 if (rects && rects.length == 1)
40 document.getElementById("result").innerHTML = "PASS";
41 else
42 document.getElementById("result").innerHTML = "FAIL";
43
44 } else {
45 document.getElementById("result").innerHTML = "This test can only be run a s a layout test.";
46 }
47
48 </script>
49 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698