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

Unified Diff: LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html

Issue 263553005: Convert repaintRectsAsText callers to text-based-repaint.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Expectations and baselines Created 6 years, 8 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/fast/repaint/background-size-auto-with-gradient-and-height-changes.html
diff --git a/LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html b/LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html
index 63342c58426b591316a010351123d408296c7beb..f70cb3237ca6f179340ebd97f88b89e4a8878aee 100644
--- a/LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html
+++ b/LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html
@@ -1,7 +1,6 @@
<html>
<head>
-<script>jsTestIsAsync = true;</script>
-<script src="../../resources/js-test.js"></script>
+<script src="resources/text-based-repaint.js"></script>
<style>
#outer {
@@ -21,34 +20,14 @@
</style>
<script>
-description('This test verifies that gradient background gets repainted properly after child box height change.');
-
-function start() {
- window.setTimeout(function() {
- document.getElementById('inner').style.height = '300px';
- window.setTimeout(logRepaints, 200);
- }, 0);
-
- if (!window.testRunner || !window.internals)
- return;
-
- window.internals.startTrackingRepaints(document);
- var dummy = document.body.offsetTop;
-}
-
-function logRepaints() {
- if (!window.internals)
- return;
-
- repaintRects = window.internals.repaintRectsAsText(document);
- window.internals.stopTrackingRepaints(document);
- shouldNotBe("repaintRects.indexOf('500')", "-1");
- finishJSTest();
+// This test verifies that gradient background gets repainted properly after child box height change.
+function repaintTest() {
+ document.getElementById('inner').style.height = '300px';
}
</script>
</head>
-<body onload='start();'>
+<body onload='runRepaintTest();'>
<div id='outer'>
<div id='inner'>
</div>

Powered by Google App Engine
This is Rietveld 408576698