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

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

Issue 12287014: [cc-frame-viewer] Show layers and levels of detail (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/model/tile.js ('k') | tools/cc-frame-viewer/src/model_view.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/model_test.html
diff --git a/tools/cc-frame-viewer/src/model_test.html b/tools/cc-frame-viewer/src/model_test.html
index f3cffca63054d3581e8b23573fad49d6de422d9e..f26c3d8ef34569c384eeeb44b5d758449c928905 100644
--- a/tools/cc-frame-viewer/src/model_test.html
+++ b/tools/cc-frame-viewer/src/model_test.html
@@ -14,6 +14,7 @@ found in the LICENSE file.
</head>
<body>
<script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script>
+<script src="../unittest_data/one_frame_with_layers.js"></script>
<script>
'use strict';
@@ -28,6 +29,17 @@ found in the LICENSE file.
assertEquals(1, lthiHistory.lthiSnapshots.length);
}
+ function testLayer() {
+ var model = new Model();
+ model.initFromFrameData(gOneFrameWithLayers);
+ assertEquals(1, base.dictionaryValues(model.lthiHistories).length)
+ var lthiHistory = base.dictionaryValues(model.lthiHistories)[0];
+ assertEquals(1, lthiHistory.lthiSnapshots.length);
+
+ var lthi = lthiHistory.lthiSnapshots[0];
+ assertTrue(lthi.activeTree.allLayers.length > 0);
+ }
+
</script>
</body>
</html>
« 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