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

Unified Diff: LayoutTests/compositing/video/video-with-invalid-source.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/video/video-with-invalid-source.html
diff --git a/LayoutTests/compositing/video/video-with-invalid-source.html b/LayoutTests/compositing/video/video-with-invalid-source.html
index 8aff694daf1fa0e9369f19c2271cbee5fa510185..bf67cf403eec51a717ed4bcf5badc5a6ed624b69 100644
--- a/LayoutTests/compositing/video/video-with-invalid-source.html
+++ b/LayoutTests/compositing/video/video-with-invalid-source.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<script src="../../resources/run-after-display.js"></script>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
@@ -13,10 +14,11 @@ function test() {
v.appendChild(src);
src.addEventListener("error", function() {
if (window.testRunner) {
- testRunner.display();
- // If we didn't crash here, yay! Test is a success
- document.body.appendChild(document.createTextNode("PASS"));
- testRunner.notifyDone();
+ runAfterDisplay(function() {
+ // If we didn't crash here, yay! Test is a success
+ document.body.appendChild(document.createTextNode("PASS"));
+ testRunner.notifyDone();
+ });
}
}, false);
}

Powered by Google App Engine
This is Rietveld 408576698