OLD | NEW |
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/base/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/utils.html"> |
9 <link rel="import" href="/tracing/core/test_utils.html"> | 9 <link rel="import" href="/tracing/core/test_utils.html"> |
10 <link rel="import" href="/tracing/ui/analysis/flow_classifier.html"> | 10 <link rel="import" href="/tracing/ui/analysis/flow_classifier.html"> |
11 | 11 |
12 <script> | 12 <script> |
13 'use strict'; | 13 'use strict'; |
14 | 14 |
15 tr.b.unittest.testSuite(function() { | 15 tr.b.unittest.testSuite(function() { |
16 const newFlowEventEx = tr.c.TestUtils.newFlowEventEx; | 16 const newFlowEventEx = tr.c.TestUtils.newFlowEventEx; |
17 | 17 |
18 test('basic', function() { | 18 test('basic', function() { |
(...skipping 24 matching lines...) Expand all Loading... |
43 }); | 43 }); |
44 return events; | 44 return events; |
45 } | 45 } |
46 | 46 |
47 assert.deepEqual(Array.from(fc.inFlowEvents), [a]); | 47 assert.deepEqual(Array.from(fc.inFlowEvents), [a]); |
48 assert.deepEqual(Array.from(fc.outFlowEvents), [d]); | 48 assert.deepEqual(Array.from(fc.outFlowEvents), [d]); |
49 assert.deepEqual(Array.from(fc.internalFlowEvents), [b, c]); | 49 assert.deepEqual(Array.from(fc.internalFlowEvents), [b, c]); |
50 }); | 50 }); |
51 }); | 51 }); |
52 </script> | 52 </script> |
OLD | NEW |