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

Unified Diff: LayoutTests/paint/invalidation/spv2/tricky-element-removal-crash.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/tricky-element-removal-crash.html
diff --git a/LayoutTests/compositing/squashing/tricky-element-removal-crash.html b/LayoutTests/paint/invalidation/spv2/tricky-element-removal-crash.html
similarity index 57%
copy from LayoutTests/compositing/squashing/tricky-element-removal-crash.html
copy to LayoutTests/paint/invalidation/spv2/tricky-element-removal-crash.html
index e8874210e20b99a98a7cee7cf1dbdf2f2273570d..dbee4dafe8f3d14e6dffe1909e0f295658ed7108 100644
--- a/LayoutTests/compositing/squashing/tricky-element-removal-crash.html
+++ b/LayoutTests/paint/invalidation/spv2/tricky-element-removal-crash.html
@@ -1,13 +1,17 @@
+<!-- Based on compositing/squashing/tricky-element-removal-crash.html -->
<!DOCTYPE html>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<div style="width: 200px; height: 200px; transform: translateZ(0); background-color: salmon;"></div>
<div style="position: absolute; z-index: 0; top: 8px; width: 100px; height: 100px">
<div id="target" style="width: 100px; height: 100px; transform: translateZ(0); background-color: blue">
</div>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='target'",
+];
+function paintInvalidationTest() {
document.querySelector('#target').remove();
}
-runRepaintTest();
+runPaintInvalidationTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698