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

Unified Diff: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html

Issue 2163983007: [polymer] Fix the input latency side panel test (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-rebase
Patch Set: Created 4 years, 5 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: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
diff --git a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
index 085050db936c08ae3ea2f64a40b68424a7c3ba6c..049acac670f906b23549f711097d8c698d96c33b 100644
--- a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
+++ b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
@@ -192,6 +192,14 @@ Polymer({
labels));
},
+ // TODO(charliea): Delete this function in favor of rangeOfInterest.
+ get currentRangeOfInterest() {
+ if (this.rangeOfInterest_.isEmpty)
+ return this.model_.bounds;
+ else
+ return this.rangeOfInterest_;
+ },
+
createLatencyLineChart: function(data, title) {
var chart = new tr.ui.b.LineChart();
var width = 600;
@@ -212,7 +220,7 @@ Polymer({
if (this.modelHelper_ === undefined)
return;
- var rangeOfInterest = this.rangeOfInterest;
+ var rangeOfInterest = this.currentRangeOfInterest;
var chromeProcess;
if (this.modelHelper_.rendererHelpers[this.selectedProcessId_])
« 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