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

Side by Side Diff: tracing/tracing/model/helpers/chrome_browser_helper_test.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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 7
8 <link rel="import" href="/tracing/core/test_utils.html"> 8 <link rel="import" href="/tracing/core/test_utils.html">
9 <link rel="import" href="/tracing/extras/chrome/cc/input_latency_async_slice.htm l"> 9 <link rel="import" href="/tracing/extras/chrome/cc/input_latency_async_slice.htm l">
10 <link rel="import" href="/tracing/extras/chrome/chrome_test_utils.html"> 10 <link rel="import" href="/tracing/extras/chrome/chrome_test_utils.html">
11 <link rel="import" href="/tracing/extras/importer/trace_event_importer.html"> 11 <link rel="import" href="/tracing/extras/importer/trace_event_importer.html">
12 <link rel="import" href="/tracing/model/helpers/chrome_browser_helper.html"> 12 <link rel="import" href="/tracing/model/helpers/chrome_browser_helper.html">
13 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html"> 13 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
14 <link rel="import" href="/tracing/model/model.html"> 14 <link rel="import" href="/tracing/model/model.html">
15 15
16 <script> 16 <script>
17 'use strict'; 17 'use strict';
18 18
19 tr.b.unittest.testSuite(function() { 19 tr.b.unittest.testSuite(function() {
20 var INPUT_TYPE = tr.e.cc.INPUT_EVENT_TYPE_NAMES; 20 var INPUT_TYPE = tr.e.cc.INPUT_EVENT_TYPE_NAMES;
21 21
22 function getRange(min, max) { 22 function getRange(min, max) {
23 var range = new tr.b.Range(); 23 var range = new tr.b.math.Range();
24 range.min = min; 24 range.min = min;
25 range.max = max; 25 range.max = max;
26 return range; 26 return range;
27 } 27 }
28 28
29 test('LoadingEvent', function() { 29 test('LoadingEvent', function() {
30 var model = tr.e.chrome.ChromeTestUtils.newChromeModel(function() { }); 30 var model = tr.e.chrome.ChromeTestUtils.newChromeModel(function() { });
31 var modelHelper = model.getOrCreateHelper( 31 var modelHelper = model.getOrCreateHelper(
32 tr.model.helpers.ChromeModelHelper); 32 tr.model.helpers.ChromeModelHelper);
33 tr.e.chrome.ChromeTestUtils.addLoadingEvent(model, {start: 1, end: 10}); 33 tr.e.chrome.ChromeTestUtils.addLoadingEvent(model, {start: 1, end: 10});
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 test('browserName_webview', function() { 74 test('browserName_webview', function() {
75 var model = tr.e.chrome.ChromeTestUtils.newChromeModel(function() { }); 75 var model = tr.e.chrome.ChromeTestUtils.newChromeModel(function() { });
76 model.browserProcess.getOrCreateThread(42).name = 76 model.browserProcess.getOrCreateThread(42).name =
77 'Chrome_InProcRendererThread'; 77 'Chrome_InProcRendererThread';
78 var modelHelper = model.getOrCreateHelper( 78 var modelHelper = model.getOrCreateHelper(
79 tr.model.helpers.ChromeModelHelper); 79 tr.model.helpers.ChromeModelHelper);
80 assert.strictEqual(modelHelper.browserHelper.browserName, 'webview'); 80 assert.strictEqual(modelHelper.browserHelper.browserName, 'webview');
81 }); 81 });
82 }); 82 });
83 </script> 83 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/model/helpers/android_surface_flinger.html ('k') | tracing/tracing/model/helpers/chrome_model_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698