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

Unified Diff: LayoutTests/paint/invalidation/spv2/shadow-box-resize.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.html
diff --git a/LayoutTests/fast/box-shadow/shadow-box-resize.html b/LayoutTests/paint/invalidation/spv2/shadow-box-resize.html
similarity index 62%
copy from LayoutTests/fast/box-shadow/shadow-box-resize.html
copy to LayoutTests/paint/invalidation/spv2/shadow-box-resize.html
index 6d781c480c42be4aa046ddfd51de2c5cdbbdf7a7..f740e70446982dfec8ee07213d5e04f7d369332d 100644
--- a/LayoutTests/fast/box-shadow/shadow-box-resize.html
+++ b/LayoutTests/paint/invalidation/spv2/shadow-box-resize.html
@@ -1,14 +1,21 @@
+<!-- Based on fast/box-shadow/shadow-box-resize.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