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

Unified Diff: LayoutTests/paint/invalidation/spv2/repaint-via-layout-offset.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/repaint-via-layout-offset.html
diff --git a/LayoutTests/compositing/squashing/repaint-via-layout-offset.html b/LayoutTests/paint/invalidation/spv2/repaint-via-layout-offset.html
similarity index 64%
copy from LayoutTests/compositing/squashing/repaint-via-layout-offset.html
copy to LayoutTests/paint/invalidation/spv2/repaint-via-layout-offset.html
index 0ef96112aa7dcd5284f4add93c0c0ccb291621b6..43e1df9b04991b21f46bd2ecd507e36cefadb1aa 100644
--- a/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
+++ b/LayoutTests/paint/invalidation/spv2/repaint-via-layout-offset.html
@@ -1,5 +1,6 @@
+<!-- Based on compositing/squashing/repaint-via-layout-offset.html -->
<!DOCTYPE html>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<style>
#container {
position: absolute;
@@ -27,8 +28,11 @@
<span class="child"></span>
</div>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) SPAN class='child embiggen'",
+];
+function paintInvalidationTest() {
document.querySelectorAll('.child')[1].classList.add('embiggen');
}
-runRepaintTest();
+runPaintInvalidationTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698