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

Side by Side Diff: tools/cc-frame-viewer/src/model_test.html

Issue 12225131: [cc] Initial checkin of cc-frame-viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « tools/cc-frame-viewer/src/model/tile.js ('k') | tools/cc-frame-viewer/src/model_view.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
7 -->
8 <head>
9 <script src="base.js"></script>
10 <script>
11 base.require('base.unittest');
12 base.require('model');
13 </script>
14 </head>
15 <body>
16 <script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script>
17 <script>
18 'use strict';
19
20 var Model = ccfv.Model;
21 var Frame = ccfv.model.Frame;
22
23 function testData1() {
24 var model = new Model();
25 model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame);
26 assertEquals(1, base.dictionaryValues(model.lthiHistories).length)
27 var lthiHistory = base.dictionaryValues(model.lthiHistories)[0];
28 assertEquals(1, lthiHistory.lthiSnapshots.length);
29 }
30
31 </script>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « tools/cc-frame-viewer/src/model/tile.js ('k') | tools/cc-frame-viewer/src/model_view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698