OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 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/model/event_set.html"> | 10 <link rel="import" href="/tracing/model/event_set.html"> |
11 <link rel="import" href="/tracing/model/model.html"> | 11 <link rel="import" href="/tracing/model/model.html"> |
12 | 12 |
13 <script> | 13 <script> |
14 'use strict'; | 14 'use strict'; |
15 | 15 |
16 tr.b.unittest.testSuite(function() { | 16 tr.b.unittest.testSuite(function() { |
17 const newModel = tr.c.TestUtils.newModel; | 17 const newModel = tr.c.TestUtils.newModel; |
18 const newSliceEx = tr.c.TestUtils.newSliceEx; | 18 const newSliceEx = tr.c.TestUtils.newSliceEx; |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 assert.deepEqual(s.map(throwOnCall), []); | 351 assert.deepEqual(s.map(throwOnCall), []); |
352 s.forEach(throwOnCall); | 352 s.forEach(throwOnCall); |
353 | 353 |
354 // Check that the set is indeed immutable. | 354 // Check that the set is indeed immutable. |
355 assert.throws(function() { s[0] = b; }); | 355 assert.throws(function() { s[0] = b; }); |
356 assert.throws(function() { s.push(b); }); | 356 assert.throws(function() { s.push(b); }); |
357 assert.throws(function() { s.addEventSet(new tr.model.EventSet()); }); | 357 assert.throws(function() { s.addEventSet(new tr.model.EventSet()); }); |
358 }); | 358 }); |
359 }); | 359 }); |
360 </script> | 360 </script> |
OLD | NEW |