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

Unified Diff: tracing/tracing/value/ui/diagnostic_map_table_test.html

Issue 2258583003: Modernize DiagnosticMap to subclass ES6 Map. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix longTasksMetric and Composition Created 4 years, 4 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: tracing/tracing/value/ui/diagnostic_map_table_test.html
diff --git a/tracing/tracing/value/ui/diagnostic_map_table_test.html b/tracing/tracing/value/ui/diagnostic_map_table_test.html
index a3896a2d7f0b51aba549d83f179dc7c4e0e25546..ac051aaeda5e31cf9f0ed6015a7fa5883c76b502 100644
--- a/tracing/tracing/value/ui/diagnostic_map_table_test.html
+++ b/tracing/tracing/value/ui/diagnostic_map_table_test.html
@@ -14,11 +14,11 @@ found in the LICENSE file.
tr.b.unittest.testSuite(function() {
test('instantiate', function() {
var map0 = new tr.v.d.DiagnosticMap();
- map0.add('genericA', new tr.v.d.Generic({a: 0}));
- map0.add('genericB', new tr.v.d.Generic({b: 0}));
+ map0.set('genericA', new tr.v.d.Generic({a: 0}));
+ map0.set('genericB', new tr.v.d.Generic({b: 0}));
var map1 = new tr.v.d.DiagnosticMap();
- map1.add('genericA', new tr.v.d.Generic({a: 1}));
- map1.add('genericB', new tr.v.d.Generic({b: 1}));
+ map1.set('genericA', new tr.v.d.Generic({a: 1}));
+ map1.set('genericB', new tr.v.d.Generic({b: 1}));
var table = document.createElement('tr-v-ui-diagnostic-map-table');
table.diagnosticMaps = [map0, map1];
this.addHTMLOutput(table);
« no previous file with comments | « tracing/tracing/value/ui/diagnostic_map_table.html ('k') | tracing/tracing/value/ui/histogram_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698