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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/selection-gaps-toggling-with-scrolling-contents.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/compositing/overflow/selection-gaps-toggling-with-scrolling-contents.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/selection-gaps-toggling-with-scrolling-contents.html b/third_party/WebKit/LayoutTests/compositing/overflow/selection-gaps-toggling-with-scrolling-contents.html
deleted file mode 100644
index 72152f103ae9ab94b7c8dc41ad3e0f066e74fe0c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/compositing/overflow/selection-gaps-toggling-with-scrolling-contents.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<style>
- #container {
- height: 500px;
- width: 300px;
- overflow: scroll;
- }
-
- .scrolled {
- height: 50px;
- width: 100px;
- background: orange;
- margin: 15px;
- transform: translateZ(0);
- }
-</style>
-<script>
- if (window.testRunner)
- testRunner.dumpAsText();
-
- if (window.internals)
- window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
-
- var iteration = 1;
-
- function dumpLayerTree() {
- var pre = document.getElementById("console");
-
- if (window.internals) {
- var layerTreeAsText = internals.layerTreeAsText(document);
- pre.innerHTML += '\n\n*** iteration ' + iteration + ': ***\n\n';
- pre.innerHTML += layerTreeAsText;
- }
-
- iteration++;
- }
-
- onload = function()
- {
- var container = document.getElementById('container');
-
- dumpLayerTree();
-
- container.style.backgroundColor = 'blue';
-
- dumpLayerTree();
-
- var selection = getSelection();
- var range = document.createRange();
- range.selectNode(document.getElementById("selection"));
- selection.addRange(range);
-
- dumpLayerTree();
-
- container.style.backgroundColor = '';
-
- dumpLayerTree();
- }
-</script>
-
-This test passes if the container's scrolling contents layer (the first child of the GraphicsLayer with 4 children)
-draws content only on iterations 2 and 3, and its scrolling block selection layer (the child of the scrolling
-contents layer) draws content only on iteration 4. The scrolling block selection layer should also be much smaller
-than the scrolling contents layer.
-
-<div id="container">
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled" id="selection">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
- <div class="scrolled">Lorem Ipsum</div>
-</div>
-<pre id="console"></pre>

Powered by Google App Engine
This is Rietveld 408576698