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

Side by Side Diff: trace_processor/experimental/mappers/test_mapper.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <link rel="import" href="/perf_insights/mre/function_handle.html"> 7 <link rel="import" href="/perf_insights/mre/function_handle.html">
8 <link rel="import" href="/tracing/value/value.html"> 8 <link rel="import" href="/tracing/value/value.html">
9 9
10 <script> 10 <script>
11 'use strict'; 11 'use strict';
12 12
13 tr.exportTo('pi.m', function() { 13 tr.exportTo('pi.m', function() {
14 14
15 function testMapFunction(result, model) { 15 function testMapFunction(result, model) {
16 var someValue = 4; // Chosen by fair roll of the dice. 16 var someValue = 4; // Chosen by fair roll of the dice.
17 result.addPair('simon', {value: someValue}); 17 result.addPair('simon', {value: someValue});
18 } 18 }
19 pi.FunctionRegistry.register(testMapFunction); 19 pi.FunctionRegistry.register(testMapFunction);
20 20
21 return { 21 return {
22 testMapFunction: testMapFunction 22 testMapFunction: testMapFunction
23 }; 23 };
24 }); 24 });
25 25
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698