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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-without-painting.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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/paint/invalidation/compositing/scrolling-without-painting.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-without-painting.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-without-painting.html
new file mode 100644
index 0000000000000000000000000000000000000000..4a08341d0136d25029de07ddb84af97497f5ba14
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-without-painting.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+
+<!--
+This test checks that accelerated scrolling layers can be scrolled without
+repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087.
+-->
+
+<html>
+<head>
+ <style type="text/css">
+ #scroller {
+ overflow: scroll;
+ -webkit-overflow-scrolling: touch;
+ width: 200px;
+ height: 200px;
+ border: solid thin blue;
+ }
+
+ #content {
+ height: 1000px;
+ margin-top: 25px;
+ }
+ </style>
+ <script src="../resources/text-based-repaint.js"></script>
+ <script type="text/javascript">
+ if (window.internals)
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+
+ function repaintTest() {
+ // Scroll down. This should not cause any more repaints to the
+ // scrolling contents.
+ document.getElementById('scroller').scrollTop = 25;
+ }
+
+ runRepaintAndPixelTest();
+ </script>
+</head>
+<body>
+ <div id="scroller">
+ <div id="content"></div>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698