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

Side by Side Diff: tracing/tracing/model/event_set_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
« no previous file with comments | « tracing/tracing/model/event_set.html ('k') | tracing/tracing/model/global_memory_dump.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/model/event_set.html ('k') | tracing/tracing/model/global_memory_dump.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698