Index: tools/cc-frame-viewer/src/lthi_view_test.html |
diff --git a/tools/cc-frame-viewer/src/lthi_view_test.html b/tools/cc-frame-viewer/src/lthi_view_test.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8af771233cbfdfc2427ddf73c97c62243ab3165c |
--- /dev/null |
+++ b/tools/cc-frame-viewer/src/lthi_view_test.html |
@@ -0,0 +1,36 @@ |
+<!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('lthi_view'); |
+ base.require('model'); |
+</script> |
+</head> |
+<body> |
+<script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script> |
+<script> |
+ 'use strict'; |
+ |
+ var Model = ccfv.Model; |
+ |
+ function testInstantiate() { |
+ var model = new Model(); |
+ model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame); |
+ var lthiHistory = base.dictionaryValues(model.lthiHistories)[0]; |
+ var lthi = lthiHistory.lthiSnapshots[0]; |
+ |
+ var lthiView = new ccfv.LTHIView(); |
+ this.addHTMLOutput('LTHI View', lthiView); |
+ lthiView.lthi = lthi; |
+ lthiView.style.height = 800; |
+ } |
+</script> |
+</body> |
+</html> |