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

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

Issue 203623006: Remove display() from video-with-invalid-source (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36c240e991d5e82af6a11f7339d8c3009f61c790..f23499084da0e332af5c3b76e92142217376a436 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698