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

Unified Diff: LayoutTests/paint/invalidation/spv2/textarea-resize-property-change.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/textarea-resize-property-change.html
diff --git a/LayoutTests/fast/repaint/textarea-resize-property-change.html b/LayoutTests/paint/invalidation/spv2/textarea-resize-property-change.html
similarity index 53%
copy from LayoutTests/fast/repaint/textarea-resize-property-change.html
copy to LayoutTests/paint/invalidation/spv2/textarea-resize-property-change.html
index d9f4dce24e38ae0a2269d926c904e37de0688151..b596ce2a1b0fed5706332354ae1630695fa8ef63 100644
--- a/LayoutTests/fast/repaint/textarea-resize-property-change.html
+++ b/LayoutTests/paint/invalidation/spv2/textarea-resize-property-change.html
@@ -1,10 +1,14 @@
+<!-- Based on fast/repaint/textarea-resize-property-change.html -->
<!DOCTYPE html>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutTextControl (positioned) TEXTAREA id='textarea'",
+];
+function paintInvalidationTest() {
document.getElementById('textarea').style.resize = 'auto';
}
-onload = runRepaintTest;
+onload = runPaintInvalidationTest;
</script>
Tests paint invalidation when a textarea's resize property changed.
Passes if the resize handle is repainted correctly.

Powered by Google App Engine
This is Rietveld 408576698