| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright 2016 The Chromium Authors. All rights reserved. | 3 Copyright 2016 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"> | |
| 9 <link rel="import" href="/tracing/base/math/range.html"> | 8 <link rel="import" href="/tracing/base/math/range.html"> |
| 10 <link rel="import" href="/tracing/base/raf.html"> | 9 <link rel="import" href="/tracing/base/raf.html"> |
| 10 <link rel="import" href="/tracing/base/utils.html"> |
| 11 <link rel="import" href="/tracing/value/ui/scalar_context_controller.html"> | 11 <link rel="import" href="/tracing/value/ui/scalar_context_controller.html"> |
| 12 | 12 |
| 13 <dom-module id="tr-v-ui-scalar-context-controller-mock-host"> | 13 <dom-module id="tr-v-ui-scalar-context-controller-mock-host"> |
| 14 <template> | 14 <template> |
| 15 <tr-v-ui-scalar-context-controller id="controller"> | 15 <tr-v-ui-scalar-context-controller id="controller"> |
| 16 </tr-v-ui-scalar-context-controller> | 16 </tr-v-ui-scalar-context-controller> |
| 17 <content></content> | 17 <content></content> |
| 18 </template> | 18 </template> |
| 19 </dom-module> | 19 </dom-module> |
| 20 | 20 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 c.onScalarSpanRemoved('G2', s2); | 304 c.onScalarSpanRemoved('G2', s2); |
| 305 c.expectContextUpdatedEventForTesting(['G2']); | 305 c.expectContextUpdatedEventForTesting(['G2']); |
| 306 assert.isTrue(c.getContext('G1').range.equals( | 306 assert.isTrue(c.getContext('G1').range.equals( |
| 307 tr.b.math.Range.fromExplicitRange(1, 3))); | 307 tr.b.math.Range.fromExplicitRange(1, 3))); |
| 308 assert.sameMembers(Array.from(c.getContext('G1').spans), [s1, s3, s4]); | 308 assert.sameMembers(Array.from(c.getContext('G1').spans), [s1, s3, s4]); |
| 309 assert.isUndefined(c.getContext('G2')); | 309 assert.isUndefined(c.getContext('G2')); |
| 310 }); | 310 }); |
| 311 }); | 311 }); |
| 312 </script> | 312 </script> |
| OLD | NEW |