| 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 */ | 797 */ |
| 798 getFloatValue: function() { return this.__paddingLeft; }, | 798 getFloatValue: function() { return this.__paddingLeft; }, |
| 799 __paddingLeft: parseFloat(this.paddingLeft) | 799 __paddingLeft: parseFloat(this.paddingLeft) |
| 800 }; | 800 }; |
| 801 } | 801 } |
| 802 throw new Error("getPropertyCSSValue is undefined"); | 802 throw new Error("getPropertyCSSValue is undefined"); |
| 803 } | 803 } |
| 804 | 804 |
| 805 // Support for legacy (<M41) frontends. Remove in M45. | 805 // Support for legacy (<M41) frontends. Remove in M45. |
| 806 window.CSSStyleDeclaration.prototype.getPropertyCSSValue = getValue; | 806 window.CSSStyleDeclaration.prototype.getPropertyCSSValue = getValue; |
| 807 window.CSSPrimitiveValue = { CSS_PX: "CSS_PX" }; | 807 |
| 808 function CSSPrimitiveValue() |
| 809 { |
| 810 } |
| 811 CSSPrimitiveValue.CSS_PX = 5; |
| 812 window.CSSPrimitiveValue = CSSPrimitiveValue; |
| 808 | 813 |
| 809 // Support for legacy (<M44) frontends. Remove in M48. | 814 // Support for legacy (<M44) frontends. Remove in M48. |
| 810 var styleElement = window.document.createElement("style"); | 815 var styleElement = window.document.createElement("style"); |
| 811 styleElement.type = "text/css"; | 816 styleElement.type = "text/css"; |
| 812 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; | 817 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; |
| 813 window.document.head.appendChild(styleElement); | 818 window.document.head.appendChild(styleElement); |
| 814 } | 819 } |
| 815 | 820 |
| 816 function windowLoaded() | 821 function windowLoaded() |
| 817 { | 822 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 847 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) | 852 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) |
| 848 { | 853 { |
| 849 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); | 854 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); |
| 850 uiTests._tryRun(); | 855 uiTests._tryRun(); |
| 851 }; | 856 }; |
| 852 | 857 |
| 853 window.uiTests = uiTests; | 858 window.uiTests = uiTests; |
| 854 } | 859 } |
| 855 | 860 |
| 856 })(window); | 861 })(window); |
| OLD | NEW |