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

Unified Diff: LayoutTests/media/media-document-audio-repaint.html

Issue 196353013: Convert some repaint tests to not call display() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations, remove do-not-repaint tricky test Created 6 years, 9 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
« no previous file with comments | « LayoutTests/media/audio-repaint.html ('k') | LayoutTests/svg/foreignObject/filter-repaint.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/media-document-audio-repaint.html
diff --git a/LayoutTests/media/media-document-audio-repaint.html b/LayoutTests/media/media-document-audio-repaint.html
index aca81a3dc1fce60bcb00728d18a7447917b9436b..798487c661e7b64431a3d9f73f5198e7ec1f6d97 100644
--- a/LayoutTests/media/media-document-audio-repaint.html
+++ b/LayoutTests/media/media-document-audio-repaint.html
@@ -1,3 +1,13 @@
+<style>
+ body {
+ overflow: hidden
+ }
+ pre {
+ position: absolute;
+ top: 10000px;
+ }
+</style>
+<script src="../resources/run-after-display.js"></script>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
@@ -5,13 +15,20 @@
function onPause()
{
var videoElement = document.getElementById("fr").contentDocument.querySelector("video");
- if (window.testRunner)
- testRunner.display();
- videoElement.currentTime = videoElement.duration * 0.50;
+ window.internals.startTrackingRepaints(document);
+ runAfterDisplay(function() {
+ videoElement.currentTime = videoElement.duration * 0.50;
+ });
}
function onSeeked()
{
+ var repaintRects = window.internals.repaintRectsAsText(document);
+ var pre = document.createElement('pre');
+ document.body.appendChild(pre);
+ pre.textContent += repaintRects;
+ window.internals.stopTrackingRepaints(document);
+
if (window.testRunner)
testRunner.notifyDone();
}
« no previous file with comments | « LayoutTests/media/audio-repaint.html ('k') | LayoutTests/svg/foreignObject/filter-repaint.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698