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

Side by Side Diff: tracing/tracing/ui/analysis/stack_frame_test.html

Issue 2769203003: [tracing] Fix import ordering in all files under tracing/ (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 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 <link rel="import" href="/tracing/core/test_utils.html">
7 <link rel="import" href="/tracing/ui/analysis/stack_frame.html"> 8 <link rel="import" href="/tracing/ui/analysis/stack_frame.html">
8 <link rel="import" href="/tracing/core/test_utils.html">
9 <script> 9 <script>
10 'use strict'; 10 'use strict';
11 11
12 tr.b.unittest.testSuite(function() { 12 tr.b.unittest.testSuite(function() {
13 test('instantiate', function() { 13 test('instantiate', function() {
14 var model = new tr.Model(); 14 var model = new tr.Model();
15 var fA = tr.c.TestUtils.newStackTrace(model, ['a1', 'a2', 'a3']); 15 var fA = tr.c.TestUtils.newStackTrace(model, ['a1', 'a2', 'a3']);
16 16
17 var stackFrameView = document.createElement('tr-ui-a-stack-frame'); 17 var stackFrameView = document.createElement('tr-ui-a-stack-frame');
18 stackFrameView.stackFrame = fA; 18 stackFrameView.stackFrame = fA;
19 this.addHTMLOutput(stackFrameView); 19 this.addHTMLOutput(stackFrameView);
20 }); 20 });
21 21
22 test('clearingStackFrame', function() { 22 test('clearingStackFrame', function() {
23 var model = new tr.Model(); 23 var model = new tr.Model();
24 var fA = tr.c.TestUtils.newStackTrace(model, ['a1', 'a2', 'a3']); 24 var fA = tr.c.TestUtils.newStackTrace(model, ['a1', 'a2', 'a3']);
25 25
26 var stackFrameView = document.createElement('tr-ui-a-stack-frame'); 26 var stackFrameView = document.createElement('tr-ui-a-stack-frame');
27 stackFrameView.stackFrame = fA; 27 stackFrameView.stackFrame = fA;
28 stackFrameView.stackFrame = undefined; 28 stackFrameView.stackFrame = undefined;
29 29
30 assert.isUndefined(stackFrameView.stackFrame); 30 assert.isUndefined(stackFrameView.stackFrame);
31 assert.lengthOf(stackFrameView.$.table.$.body.children, 0); 31 assert.lengthOf(stackFrameView.$.table.$.body.children, 0);
32 }); 32 });
33 }); 33 });
34 </script> 34 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/model/time_to_object_instance_map_test.html ('k') | tracing/tracing/ui/base/timing_tool_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698