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

Unified Diff: LayoutTests/paint/invalidation/spv2/shadow-box-resize-writing-mode.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/shadow-box-resize-writing-mode.html
diff --git a/LayoutTests/fast/box-shadow/shadow-box-resize-writing-mode.html b/LayoutTests/paint/invalidation/spv2/shadow-box-resize-writing-mode.html
similarity index 62%
copy from LayoutTests/fast/box-shadow/shadow-box-resize-writing-mode.html
copy to LayoutTests/paint/invalidation/spv2/shadow-box-resize-writing-mode.html
index 5c8991f268040dbe29a7ab6d20788733210883b3..f538805e7f8cde2eb2f60f4fce73c90ebbf7472f 100644
--- a/LayoutTests/fast/box-shadow/shadow-box-resize-writing-mode.html
+++ b/LayoutTests/paint/invalidation/spv2/shadow-box-resize-writing-mode.html
@@ -1,14 +1,21 @@
+<!-- Based on fast/box-shadow/shadow-box-resize-writing-mode.html -->
<!DOCTYPE html>
-<script src="../repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest()
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='target1'",
+ "LayoutBlockFlow (positioned) DIV id='target2'",
+ "LayoutBlockFlow (positioned) DIV id='target3'",
+ "LayoutBlockFlow (positioned) DIV id='target4'",
+];
+function paintInvalidationTest()
{
document.getElementById('target1').style.width = '150px';
document.getElementById('target2').style.width = '50px';
document.getElementById('target3').style.height = '150px';
document.getElementById('target4').style.height = '50px';
}
-window.onload = runRepaintTest;
+window.onload = runPaintInvalidationTest;
</script>
<style>
body {

Powered by Google App Engine
This is Rietveld 408576698