OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 Shell.TestShell = class { | 5 Shell.TestShell = class { |
6 /** | 6 /** |
7 * @suppressGlobalPropertiesCheck | 7 * @suppressGlobalPropertiesCheck |
8 */ | 8 */ |
9 constructor() { | 9 constructor() { |
10 runOnWindowLoad(this.initializeUnitTest.bind(this)); | 10 runOnWindowLoad(this.initializeUnitTest.bind(this)); |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 UI.zoomManager = new UI.ZoomManager(self, InspectorFrontendHost); | 28 UI.zoomManager = new UI.ZoomManager(self, InspectorFrontendHost); |
29 UI.inspectorView = UI.InspectorView.instance(); | 29 UI.inspectorView = UI.InspectorView.instance(); |
30 UI.ContextMenu.initialize(); | 30 UI.ContextMenu.initialize(); |
31 UI.ContextMenu.installHandler(document); | 31 UI.ContextMenu.installHandler(document); |
32 UI.Tooltip.installHandler(document); | 32 UI.Tooltip.installHandler(document); |
33 | 33 |
34 var rootView = new UI.RootView(); | 34 var rootView = new UI.RootView(); |
35 UI.inspectorView.show(rootView.element); | 35 UI.inspectorView.show(rootView.element); |
36 rootView.attachToDocument(document); | 36 rootView.attachToDocument(document); |
37 TestRunner.executeTestScript(); | 37 TestRunner.start(); |
38 } | 38 } |
39 }; | 39 }; |
40 | 40 |
41 new Shell.TestShell(); | 41 new Shell.TestShell(); |
OLD | NEW |