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

Unified Diff: LayoutTests/fast/repaint/obscured-background-no-repaint.html

Issue 263553005: Convert repaintRectsAsText callers to text-based-repaint.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again 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/obscured-background-no-repaint.html
diff --git a/LayoutTests/fast/repaint/obscured-background-no-repaint.html b/LayoutTests/fast/repaint/obscured-background-no-repaint.html
index 6d700b55189b73ccc09d7f86ce4ae0d2f0c01e1a..0b166fdfa65bb5b356e9481dd1b80f19a6ad0bb4 100644
--- a/LayoutTests/fast/repaint/obscured-background-no-repaint.html
+++ b/LayoutTests/fast/repaint/obscured-background-no-repaint.html
@@ -1,8 +1,7 @@
<html>
<head>
-<script>jsTestIsAsync = true;</script>
-<script src="../../resources/js-test.js"></script>
<script src="../../resources/run-after-display.js"></script>
+<script src="resources/text-based-repaint.js"></script>
<style type="text/css">
#test1 div {
height: 100px;
@@ -46,21 +45,13 @@
}
</style>
<script>
- description("Test that obscured animated gif does not trigger repaints. This test requires DRT.");
- function startTrackingRepaints()
+ // Test that obscured animated gif does not trigger repaints.
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ window.testIsAsync = true;
+ function repaintTest()
{
- document.body.offsetTop;
- window.internals.startTrackingRepaints(document);
- runAfterDisplay(logRepaints);
- }
-
- function logRepaints() {
- repaintRects = window.internals.repaintRectsAsText(document);
- window.internals.stopTrackingRepaints(document);
-
- shouldBeEqualToString("repaintRects", "");
-
- finishJSTest();
+ runAfterDisplay(finishRepaintTest);
}
function start() {
@@ -68,7 +59,7 @@
return;
var img = new Image();
- img.onload = startTrackingRepaints;
+ img.onload = runRepaintTest;
img.src = "resources/animated.gif";
}
</script>

Powered by Google App Engine
This is Rietveld 408576698