| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 if (InspectorFrontendHost.isUnderTest()) { | 119 if (InspectorFrontendHost.isUnderTest()) { |
| 120 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 120 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
| 121 // Enable experiments for testing. | 121 // Enable experiments for testing. |
| 122 if (testPath.indexOf("layers/") !== -1) | 122 if (testPath.indexOf("layers/") !== -1) |
| 123 Runtime.experiments.enableForTest("layersPanel"); | 123 Runtime.experiments.enableForTest("layersPanel"); |
| 124 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 124 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
| 125 Runtime.experiments.enableForTest("layersPanel"); | 125 Runtime.experiments.enableForTest("layersPanel"); |
| 126 if (testPath.indexOf("security/") !== -1) | 126 if (testPath.indexOf("security/") !== -1) |
| 127 Runtime.experiments.enableForTest("securityPanel"); | 127 Runtime.experiments.enableForTest("securityPanel"); |
| 128 if (testPath.indexOf("accessibility/") !== -1) |
| 129 Runtime.experiments.enableForTest("accessibilityInspection"); |
| 128 } | 130 } |
| 129 | 131 |
| 130 Runtime.experiments.setDefaultExperiments([ | 132 Runtime.experiments.setDefaultExperiments([ |
| 131 "inspectTooltip", | 133 "inspectTooltip", |
| 132 "securityPanel", | 134 "securityPanel", |
| 133 "resolveVariableNames" | 135 "resolveVariableNames" |
| 134 ]); | 136 ]); |
| 135 }, | 137 }, |
| 136 | 138 |
| 137 /** | 139 /** |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 * @return {?Element} | 1102 * @return {?Element} |
| 1101 */ | 1103 */ |
| 1102 settingElement: function() | 1104 settingElement: function() |
| 1103 { | 1105 { |
| 1104 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1106 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1105 } | 1107 } |
| 1106 } | 1108 } |
| 1107 | 1109 |
| 1108 | 1110 |
| 1109 new WebInspector.Main(); | 1111 new WebInspector.Main(); |
| OLD | NEW |