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

Unified Diff: LayoutTests/svg/foreignObject/filter-repaint.svg

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/media-document-audio-repaint.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/foreignObject/filter-repaint.svg
diff --git a/LayoutTests/svg/foreignObject/filter-repaint.svg b/LayoutTests/svg/foreignObject/filter-repaint.svg
index 6238fcdd4eadeaee5253ebeb873976549bb16cc0..80346bbdda4363de8907c37b2e247c171bd34d89 100644
--- a/LayoutTests/svg/foreignObject/filter-repaint.svg
+++ b/LayoutTests/svg/foreignObject/filter-repaint.svg
@@ -21,20 +21,20 @@
function runTest() {
if (window.testRunner) {
testRunner.waitUntilDone();
- testRunner.display();
}
- setTimeout(function() {
- document.getElementById('div').style.backgroundColor = 'green';
- document.getElementById('div').style.width = '100px';
+ window.requestAnimationFrame(function() {
+ setTimeout(function() {
+ document.getElementById('div').style.backgroundColor = 'green';
+ document.getElementById('div').style.width = '100px';
- // Force a full redraw to get rid of the display() shade and make ref-testing feasible.
- document.getElementById('r').setAttribute('fill', 'none');
-
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
+ // Force a full redraw to get rid of the display() shade and make ref-testing feasible.
+ document.getElementById('r').setAttribute('fill', 'none');
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+ });
}
</script>
</svg>
« no previous file with comments | « LayoutTests/media/media-document-audio-repaint.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698