| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 (function(window) { | 5 (function(window) { |
| 6 | 6 |
| 7 // DevToolsAPI ---------------------------------------------------------------- | 7 // DevToolsAPI ---------------------------------------------------------------- |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @constructor | 10 * @constructor |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 775 |
| 776 window.InspectorFrontendHost = new InspectorFrontendHostImpl(); | 776 window.InspectorFrontendHost = new InspectorFrontendHostImpl(); |
| 777 | 777 |
| 778 // DevToolsApp --------------------------------------------------------------- | 778 // DevToolsApp --------------------------------------------------------------- |
| 779 | 779 |
| 780 /** | 780 /** |
| 781 * @suppressGlobalPropertiesCheck | 781 * @suppressGlobalPropertiesCheck |
| 782 */ | 782 */ |
| 783 function installBackwardsCompatibility() | 783 function installBackwardsCompatibility() |
| 784 { | 784 { |
| 785 if (window.location.search.indexOf("remoteFrontend") === -1) |
| 786 return; |
| 787 |
| 785 /** | 788 /** |
| 786 * @this {CSSStyleDeclaration} | 789 * @this {CSSStyleDeclaration} |
| 787 */ | 790 */ |
| 788 function getValue(property) | 791 function getValue(property) |
| 789 { | 792 { |
| 790 // Note that |property| comes from another context, so we can't use ===
here. | 793 // Note that |property| comes from another context, so we can't use ===
here. |
| 791 if (property == "padding-left") { | 794 if (property == "padding-left") { |
| 792 return { | 795 return { |
| 793 /** | 796 /** |
| 794 * @suppressReceiverCheck | 797 * @suppressReceiverCheck |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) | 854 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) |
| 852 { | 855 { |
| 853 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); | 856 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); |
| 854 uiTests._tryRun(); | 857 uiTests._tryRun(); |
| 855 }; | 858 }; |
| 856 | 859 |
| 857 window.uiTests = uiTests; | 860 window.uiTests = uiTests; |
| 858 } | 861 } |
| 859 | 862 |
| 860 })(window); | 863 })(window); |
| OLD | NEW |