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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/universal-accelerated-overflow-scroll.html

Issue 2393443002: Adjust compositing tests to be SPv2-compatible. (Closed)
Patch Set: none Created 4 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 body { 5 body {
6 height: 2000px; 6 height: 2000px;
7 } 7 }
8 8
9 .positionFixed { 9 .positionFixed {
10 position: fixed; 10 position: fixed;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 var containers = document.getElementsByClassName("overflow"); 251 var containers = document.getElementsByClassName("overflow");
252 for (var i = 0; i < containers.length; ++i) { 252 for (var i = 0; i < containers.length; ++i) {
253 var container = containers[i]; 253 var container = containers[i];
254 container.scrollTop = container.scrollHeight - container.clientHeight; 254 container.scrollTop = container.scrollHeight - container.clientHeight;
255 } 255 }
256 256
257 addDomElement("pre", "", "console", "body", [], 0); 257 addDomElement("pre", "", "console", "body", [], 0);
258 var pre = document.getElementById("console"); 258 var pre = document.getElementById("console");
259 259
260 if (window.internals) { 260 if (window.internals) {
261 var layerTreeAsText = internals.layerTreeAsText(document); 261 var layerTreeAsText = internals.layerTreeAsText(document, window.interna ls.OUTPUT_CHILDREN_AS_LAYER_LIST);
262 pre.style.left = "-80000px"; 262 pre.style.left = "-80000px";
263 pre.innerHTML = layerTreeAsText; 263 pre.innerHTML = layerTreeAsText;
264 } else { 264 } else {
265 pre.innerHTML = description.join(""); 265 pre.innerHTML = description.join("");
266 } 266 }
267 } 267 }
268 268
269 window.onload = doTest; 269 window.onload = doTest;
270 270
271 </script> 271 </script>
272 </head> 272 </head>
273 <body> 273 <body>
274 </body> 274 </body>
275 </html> 275 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698