OLD | NEW |
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 Loading... |
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> |
OLD | NEW |