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

Unified Diff: LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled.html
diff --git a/LayoutTests/fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html b/LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled.html
similarity index 68%
copy from LayoutTests/fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html
copy to LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled.html
index e9876d529c00cb98f4ed54d8691445f44679ea57..3db0aef21413e1113103f93324a6551e489b3d92 100644
--- a/LayoutTests/fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html
+++ b/LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled.html
@@ -1,7 +1,8 @@
+<!-- Based on fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html -->
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="resources/default.css">
+ <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
<style>
#outer {
position: relative;
@@ -30,9 +31,14 @@
background-color: green;
}
</style>
- <script src="resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script>
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV class='innerWrapper'",
+ "LayoutBlockFlow DIV class='red'",
+ "LayoutBlockFlow DIV id='ucp' class='green'",
+ ];
+ function paintInvalidationTest()
{
window.location.hash = "#ucp";
}
@@ -40,7 +46,7 @@
function runTest()
{
document.getElementById("outer").scrollTop = 1000;
- runRepaintTest();
+ runPaintInvalidationTest();
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698