| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 if (InspectorFrontendHost.isUnderTest()) { | 131 if (InspectorFrontendHost.isUnderTest()) { |
| 132 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 132 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
| 133 // Enable experiments for testing. | 133 // Enable experiments for testing. |
| 134 if (testPath.indexOf("layers/") !== -1) | 134 if (testPath.indexOf("layers/") !== -1) |
| 135 Runtime.experiments.enableForTest("layersPanel"); | 135 Runtime.experiments.enableForTest("layersPanel"); |
| 136 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 136 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
| 137 Runtime.experiments.enableForTest("layersPanel"); | 137 Runtime.experiments.enableForTest("layersPanel"); |
| 138 if (testPath.indexOf("security/") !== -1) | 138 if (testPath.indexOf("security/") !== -1) |
| 139 Runtime.experiments.enableForTest("securityPanel"); | 139 Runtime.experiments.enableForTest("securityPanel"); |
| 140 if (testPath.indexOf("accessibility/") !== -1) |
| 141 Runtime.experiments.enableForTest("accessibilityInspection"); |
| 140 } | 142 } |
| 141 | 143 |
| 142 Runtime.experiments.setDefaultExperiments([ | 144 Runtime.experiments.setDefaultExperiments([ |
| 143 "inspectTooltip", | 145 "inspectTooltip", |
| 144 "securityPanel", | 146 "securityPanel", |
| 145 "resolveVariableNames" | 147 "resolveVariableNames" |
| 146 ]); | 148 ]); |
| 147 }, | 149 }, |
| 148 | 150 |
| 149 /** | 151 /** |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 * @return {?Element} | 1114 * @return {?Element} |
| 1113 */ | 1115 */ |
| 1114 settingElement: function() | 1116 settingElement: function() |
| 1115 { | 1117 { |
| 1116 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1118 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1117 } | 1119 } |
| 1118 } | 1120 } |
| 1119 | 1121 |
| 1120 | 1122 |
| 1121 new WebInspector.Main(); | 1123 new WebInspector.Main(); |
| OLD | NEW |