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

Unified Diff: tools/telemetry/telemetry/page/actions/loop.js

Issue 70333004: Telemetry: make media perf tests log errors rather than timing out (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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: tools/telemetry/telemetry/page/actions/loop.js
diff --git a/tools/telemetry/telemetry/page/actions/loop.js b/tools/telemetry/telemetry/page/actions/loop.js
index 00ab8d73ec66983d9eb296ed4c430f810f18097b..f8627843e68602fbe6b70c45c7a088b670800a7a 100644
--- a/tools/telemetry/telemetry/page/actions/loop.js
+++ b/tools/telemetry/telemetry/page/actions/loop.js
@@ -20,6 +20,7 @@
}
function loopHTML5Element(element, loopCount) {
+ window.__registerHTML5ErrorEvents(element);
element['loop_completed'] = false;
var currentLoop = 0;
var onLoop = function(e) {
@@ -35,11 +36,6 @@
}
};
- function onError(e) {
- throw new Error('Error playing media :' + e.type);
- }
- element.addEventListener('error', onError);
- element.addEventListener('abort', onError);
element.addEventListener('seeked', onLoop);
element.loop = true;
« no previous file with comments | « tools/perf/page_sets/tough_video_cases/video.html ('k') | tools/telemetry/telemetry/page/actions/media_action.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698