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

Unified Diff: tools/cc-frame-viewer/src/tree_quad_view_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cc-frame-viewer/src/tree_quad_view.js ('k') | tools/cc-frame-viewer/src/ui.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/tree_quad_view_test.html
diff --git a/tools/cc-frame-viewer/src/tree_quad_view_test.html b/tools/cc-frame-viewer/src/tree_quad_view_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..b987c83c30f7aab3e2747076a0e48abbabf8b366
--- /dev/null
+++ b/tools/cc-frame-viewer/src/tree_quad_view_test.html
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+Copyright (c) 2012 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<head>
+<script src="base.js"></script>
+<script>
+ base.require('base.unittest');
+ base.require('tree_quad_view');
+ base.require('model');
+</script>
+</head>
+<body>
+<script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script>
+<script>
+ 'use strict';
+
+ var TreeQuadView = ccfv.TreeQuadView;
+
+ function testSimpleColorMap() {
+ var model = new ccfv.Model();
+ model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame);
+ var lthiHistory = base.dictionaryValues(model.lthiHistories)[0];
+ var lthi = lthiHistory.lthiSnapshots[0];
+
+ var view = new TreeQuadView();
+ view.title = 'test';
+ view.viewport = new ccfv.QuadViewViewport(lthi.activeTree.tileBBox);
+ view.which_tree = lthi.activeTree.which_tree;
+ view.tiles = lthi.activeTree.tiles;
+
+ this.addHTMLOutput('view', view);
+ }
+</script>
+</body>
+</html>
« no previous file with comments | « tools/cc-frame-viewer/src/tree_quad_view.js ('k') | tools/cc-frame-viewer/src/ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698