OLD | NEW |
(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_view'); |
| 13 </script> |
| 14 </head> |
| 15 <body> |
| 16 <script src="../unittest_data/full_trace_but_with_only_two_frames.js"></script> |
| 17 <script> |
| 18 'use strict'; |
| 19 |
| 20 var Model = ccfv.Model; |
| 21 var ModelView = ccfv.ModelView; |
| 22 |
| 23 function testInstantiate() { |
| 24 var model = new Model(); |
| 25 model.initFromTraceEvents(gFullTraceButWithOnlyTwoFrames); |
| 26 var modelView = new ModelView(); |
| 27 this.addHTMLOutput('Model View', modelView); |
| 28 modelView.model = model; |
| 29 modelView.style.height = '600px'; |
| 30 } |
| 31 </script> |
| 32 </body> |
| 33 </html> |
OLD | NEW |