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

Unified Diff: LayoutTests/paint/invalidation/spv2/selection-clear-after-move.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/selection-clear-after-move.html
diff --git a/LayoutTests/fast/repaint/selection-clear-after-move.html b/LayoutTests/paint/invalidation/spv2/selection-clear-after-move.html
similarity index 61%
copy from LayoutTests/fast/repaint/selection-clear-after-move.html
copy to LayoutTests/paint/invalidation/spv2/selection-clear-after-move.html
index b8ee0d6e61abf0b6ef05686f4b1b380473033726..2215a49cb55e993b253ce35d1a886d1829fe8f2f 100644
--- a/LayoutTests/fast/repaint/selection-clear-after-move.html
+++ b/LayoutTests/paint/invalidation/spv2/selection-clear-after-move.html
@@ -1,15 +1,19 @@
+<!-- Based on fast/repaint/selection-clear-after-move.html -->
<!DOCTYPE html>
-<script src="../../resources/run-after-layout-and-paint.js"></script>
-<script src="resources/text-based-repaint.js"></script>
+<script src="../../../fast/repaint/../../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutImage IMG",
+];
+function paintInvalidationTest() {
getSelection().removeAllRanges();
}
onload = function() {
getSelection().selectAllChildren(document.getElementById('div'));
runAfterLayoutAndPaint(function() {
document.getElementById('div').style.top = '300px';
- runRepaintTest();
+ runPaintInvalidationTest();
});
};
</script>

Powered by Google App Engine
This is Rietveld 408576698