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

Unified Diff: LayoutTests/compositing/repaint/requires-backing-repaint.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 10 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/compositing/repaint/requires-backing-repaint.html
diff --git a/LayoutTests/compositing/repaint/requires-backing-repaint.html b/LayoutTests/compositing/repaint/requires-backing-repaint.html
index 7663c53f6daaef869196cfda27547d538941d84c..bac588d4c2aeb7381130ed98039d9c8e605bc18e 100644
--- a/LayoutTests/compositing/repaint/requires-backing-repaint.html
+++ b/LayoutTests/compositing/repaint/requires-backing-repaint.html
@@ -2,6 +2,7 @@
<html>
<head>
+ <script src="../../resources/run-after-display.js"></script>
<style>
.bar {
width: 200px;
@@ -42,14 +43,11 @@
var overflow = document.getElementById('overflow');
overflow.scrollTop = 50;
- if (window.testRunner)
- testRunner.display();
-
- window.setTimeout(function() {
+ runAfterDisplay(function() {
overflow.scrollTop = 75;
if (window.testRunner)
testRunner.notifyDone();
- }, 0)
+ });
}
window.addEventListener('load', doTest, false);
</script>
« no previous file with comments | « LayoutTests/compositing/repaint/page-scale-repaint.html ('k') | LayoutTests/compositing/repaint/transform-style-change.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698