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

Unified Diff: LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.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/horizontal-bt-overflow-parent.html
diff --git a/LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html b/LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html
similarity index 74%
copy from LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html
copy to LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html
index 5ebb56b8ba2bcf092d242978a7623bc077cae3ac..c018ed901eee5e3e46bc5ff3b6f65b114529142c 100644
--- a/LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html
+++ b/LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/horizontal-bt-overflow-parent.html -->
<!DOCTYPE html>
<html><head>
<style>
@@ -31,17 +32,20 @@
</div></div>
An orange rect should be painted.<br/>
In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't care how many times is the log dumpped.
- <script src="../../resources/run-after-layout-and-paint.js"></script>
- <script src="resources/text-based-repaint.js"></script>
+ <script src="../../../resources/run-after-layout-and-paint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script>
- repaintTest = function() {
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV class='target'",
+ ];
+ function paintInvalidationTest() {
var target = document.getElementsByClassName("target")[0];
target.style.visibility = "visible";
};
var container = document.getElementsByClassName("container")[0];
runAfterLayoutAndPaint(function() {
container.scrollTop = 0;
- runRepaintTest();
+ runPaintInvalidationTest();
});
</script>
</body></html>

Powered by Google App Engine
This is Rietveld 408576698