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: LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects.js

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
1 function listener() { 1 function listener() {
2 } 2 }
3 3
4 function log(msg) { 4 function log(msg) {
5 var span = document.createElement("span"); 5 var span = document.createElement("span");
6 document.getElementById("console").appendChild(span); 6 document.getElementById("console").appendChild(span);
7 span.innerHTML = msg + '<br />'; 7 span.innerHTML = msg + '<br />';
8 } 8 }
9 9
10 function nameForNode(node) { 10 function nameForNode(node) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 if (window.internals) { 127 if (window.internals) {
128 window.internals.settings.setMockScrollbarsEnabled(true); 128 window.internals.settings.setMockScrollbarsEnabled(true);
129 window.internals.settings.setForceCompositingMode(true); 129 window.internals.settings.setForceCompositingMode(true);
130 } 130 }
131 131
132 window.onload = function() { 132 window.onload = function() {
133 // Run each general test case. 133 // Run each general test case.
134 var tests = document.querySelectorAll('.testcase'); 134 var tests = document.querySelectorAll('.testcase');
135 for ( var i = 0; i < tests.length; i++) { 135 for ( var i = 0; i < tests.length; i++)
136 // Force a compositing update before testing each case to ensure that
137 // any subsequent touch rect updates are actually done because of
138 // the event handler changes in the test itself.
139 window.internals.forceCompositingUpdate(document);
140 testElement(tests[i]); 136 testElement(tests[i]);
141 }
142 137
143 if (window.additionalTests) 138 if (window.additionalTests)
144 additionalTests(); 139 additionalTests();
145 140
146 if (!visualize && window.internals) { 141 if (!visualize && window.internals) {
147 var testContainer = document.getElementById("tests"); 142 var testContainer = document.getElementById("tests");
148 testContainer.parentNode.removeChild(testContainer); 143 testContainer.parentNode.removeChild(testContainer);
149 } 144 }
150 145
151 document.documentElement.setAttribute('done', 'true'); 146 document.documentElement.setAttribute('done', 'true');
152 }; 147 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698