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

Unified Diff: tools/perf/metrics/media.js

Issue 23456012: [Telemetry] Improve logging on media measurement tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix video.html check Created 7 years, 3 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 | tools/perf/metrics/media.py » ('j') | tools/perf/metrics/media.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/media.js
diff --git a/tools/perf/metrics/media.js b/tools/perf/metrics/media.js
index 792e755de8017dfd1acd0db73807ef97a0b05bfa..834161052f75f42059e2590e3a2a84ecd067834c 100644
--- a/tools/perf/metrics/media.js
+++ b/tools/perf/metrics/media.js
@@ -63,10 +63,10 @@
HTMLMediaMetric.prototype.constructor = HTMLMediaMetric;
HTMLMediaMetric.prototype.setID = function() {
- if (this.element.src)
- this.id = this.element.src.substring(this.element.src.lastIndexOf("/")+1);
- else if (this.element.id)
+ if (this.element.id)
this.id = this.element.id;
+ else if (this.element.src)
+ this.id = this.element.src.substring(this.element.src.lastIndexOf("/")+1);
else
this.id = 'media_' + window.__globalCounter++;
};
« no previous file with comments | « no previous file | tools/perf/metrics/media.py » ('j') | tools/perf/metrics/media.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698