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

Side by Side Diff: tracing/tracing/extras/tquery/tquery_test.html

Issue 2995843002: Merge iteration_helpers into utils.html. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2015 The Chromium Authors. All rights reserved. 3 Copyright 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/base/iteration_helpers.html"> 8 <link rel="import" href="/tracing/base/utils.html">
9 <link rel="import" href="/tracing/core/scripting_controller.html"> 9 <link rel="import" href="/tracing/core/scripting_controller.html">
10 <link rel="import" href="/tracing/core/test_utils.html"> 10 <link rel="import" href="/tracing/core/test_utils.html">
11 <link rel="import" href="/tracing/extras/tquery/tquery.html"> 11 <link rel="import" href="/tracing/extras/tquery/tquery.html">
12 <link rel="import" href="/tracing/model/model.html"> 12 <link rel="import" href="/tracing/model/model.html">
13 13
14 <script> 14 <script>
15 'use strict'; 15 'use strict';
16 16
17 tr.b.unittest.testSuite(function() { 17 tr.b.unittest.testSuite(function() {
18 function createTestModel(sliceCount) { 18 function createTestModel(sliceCount) {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 {guid: 3, title: 'c'} 238 {guid: 3, title: 'c'}
239 ]); 239 ]);
240 const tquery = new tr.e.tquery.TQuery(model); 240 const tquery = new tr.e.tquery.TQuery(model);
241 241
242 const result = tquery.filter(noneOf(/a/, /b/)).selection; 242 const result = tquery.filter(noneOf(/a/, /b/)).selection;
243 assert.strictEqual(result.length, 1); 243 assert.strictEqual(result.length, 1);
244 assert.strictEqual(tr.b.getOnlyElement(result).guid, 3); 244 assert.strictEqual(tr.b.getOnlyElement(result).guid, 3);
245 }); 245 });
246 }); 246 });
247 </script> 247 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/extras/importer/linux_perf/ftrace_importer.html ('k') | tracing/tracing/metrics/compare_samples_cmdline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698