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

Unified Diff: chrome/test/data/prerender/prerender_html5_common.js

Issue 10546103: Adding debugging for PrerenderBrowserTest.PrerenderHTML5Video tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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: chrome/test/data/prerender/prerender_html5_common.js
diff --git a/chrome/test/data/prerender/prerender_html5_common.js b/chrome/test/data/prerender/prerender_html5_common.js
index 0e2af7da0514884c3f6e6959fe0a4c6c412c3221..edb381c4a2f1c46ea21bfd3b2ef157197d3bb66b 100644
--- a/chrome/test/data/prerender/prerender_html5_common.js
+++ b/chrome/test/data/prerender/prerender_html5_common.js
@@ -77,6 +77,17 @@ if (testNetworkEvents) {
mediaEl.addEventListener('loadstart', mediaEventHandler, false);
}
+// TODO(shishir): Remove this once http://crbug.com/130788 is fixed.
+function printDebugInfo() {
+ console.log("\ncanPlaySeen: " + canPlaySeen);
+ console.log("playingSeen: " + playingSeen);
+ console.log("canPlayThroughSeen: " + canPlayThroughSeen);
+ console.log("loadStartSeen: " + loadStartSeen);
+ console.log("stalledSeen: " + stalledSeen);
+ console.log("hasError: " + hasError + "\n");
+}
+setInterval(printDebugInfo, 5000);
+
function DidPrerenderPass() {
// The media should not have started at this point.
return !canPlaySeen && !playingSeen && !hasError &&
« 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