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

Unified Diff: LayoutTests/paint/invalidation/spv2/absolute-layer-specified-left-or-right-auto-width-moved-vertically.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/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html
diff --git a/LayoutTests/fast/repaint/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html b/LayoutTests/paint/invalidation/spv2/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html
similarity index 50%
copy from LayoutTests/fast/repaint/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html
copy to LayoutTests/paint/invalidation/spv2/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html
index b441f55e25994c11fead31904a9599821a22278d..736e54803029de79eb70f32fa4ab440ace3494a5 100644
--- a/LayoutTests/fast/repaint/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html
+++ b/LayoutTests/paint/invalidation/spv2/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html
@@ -1,24 +1,16 @@
+<!-- Based on fast/repaint/absolute-layer-specified-left-or-right-auto-width-moved-vertically.html -->
<!DOCTYPE html>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function test()
+window.expectedPaintInvalidationObjects = [
+];
+function paintInvalidationTest()
{
- if (!window.testRunner || !window.internals)
- return;
-
- testRunner.dumpAsText();
- document.body.offsetTop;
- internals.startTrackingRepaints(document);
-
document.getElementById('left').style.top = '400px';
document.getElementById('right').style.top = '400px';
-
- document.body.offsetTop;
- var layerTree = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
- document.getElementById('result').textContent = layerTree.indexOf('repaint') == -1 ? 'SUCCESS' : 'FAIL';
}
-window.onload = test;
+window.onload = runPaintInvalidationTest;
</script>
<style>

Powered by Google App Engine
This is Rietveld 408576698