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

Unified Diff: chrome/test/data/media/html/media_constrained_network.html

Issue 9127009: Constrained Network test does not fail fast under fatal conditions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: and again... Created 8 years, 11 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: chrome/test/data/media/html/media_constrained_network.html
diff --git a/chrome/test/data/media/html/media_constrained_network.html b/chrome/test/data/media/html/media_constrained_network.html
index 37e56a9b11cb09ad40c2093b217515fc1d36c95b..21ba85c6468a858949c94670378b61109bafb64f 100644
--- a/chrome/test/data/media/html/media_constrained_network.html
+++ b/chrome/test/data/media/html/media_constrained_network.html
@@ -21,19 +21,19 @@
// Metrics to record. See media_constrained_network_perf for more details.
// Use -1 to indicate that we haven't recorded these values yet. The PyAuto
// controller will poll for these values until they are each >= 0.
- var extra_play_percentage = -1, time_to_playback = -1;
+ var epp = -1, ttp = -1;
video.addEventListener('playing', function(event) {
startTime = new Date().getTime();
- time_to_playback = Math.max(0, startTime - loadTime);
+ ttp = Math.max(0, startTime - loadTime);
}, false);
video.addEventListener('ended', function(event) {
playTime = new Date().getTime() - startTime;
durMs = video.duration * 1000;
- extra_play_percentage = Math.max(0, (playTime - durMs) * 100 / durMs)
+ epp = Math.max(0, (playTime - durMs) * 100 / durMs)
}, false);
// Called by the PyAuto controller to initiate testing.

Powered by Google App Engine
This is Rietveld 408576698