Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: Source/devtools/front_end/documentation/DocumentationURLProvider.js

Issue 559423004: DevTools: [Documentation] Disable external XHR requests in documentation tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments addressed Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/inspector/documentation/documentation-url-provider.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /** 5 /**
6 * @constructor 6 * @constructor
7 */ 7 */
8 WebInspector.DocumentationURLProvider = function() 8 WebInspector.DocumentationURLProvider = function()
9 { 9 {
10 this._gapFromIndex = 0; 10 this._gapFromIndex = 0;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 new WebInspector.DocumentationURLProvider.DocumentationSource(Number, "javas cript/Number/", "Number"), 133 new WebInspector.DocumentationURLProvider.DocumentationSource(Number, "javas cript/Number/", "Number"),
134 new WebInspector.DocumentationURLProvider.DocumentationSource(Number.prototy pe, "javascript/Number/", "Number.prototype"), 134 new WebInspector.DocumentationURLProvider.DocumentationSource(Number.prototy pe, "javascript/Number/", "Number.prototype"),
135 new WebInspector.DocumentationURLProvider.DocumentationSource(Error.prototyp e, "javascript/Error/", "Error.prototype"), 135 new WebInspector.DocumentationURLProvider.DocumentationSource(Error.prototyp e, "javascript/Error/", "Error.prototype"),
136 new WebInspector.DocumentationURLProvider.DocumentationSource(RegExp.prototy pe, "javascript/regular_expression/", "RegExp.prototype"), 136 new WebInspector.DocumentationURLProvider.DocumentationSource(RegExp.prototy pe, "javascript/regular_expression/", "RegExp.prototype"),
137 new WebInspector.DocumentationURLProvider.DocumentationSource(Function.proto type, "javascript/Function/", "Function.prototype") 137 new WebInspector.DocumentationURLProvider.DocumentationSource(Function.proto type, "javascript/Function/", "Function.prototype")
138 ]; 138 ];
139 139
140 /** 140 /**
141 * @const 141 * @const
142 */ 142 */
143 WebInspector.DocumentationURLProvider._articleUrlFormat = "http://docs.webplatfo rm.org/w/api.php?action=query&titles=%s%s&prop=revisions&rvprop=timestamp|conten t&format=json"; 143 WebInspector.DocumentationURLProvider.urlPrefix = "http://docs.webplatform.org";
144 144
145 /** 145 /**
146 * @const 146 * @const
147 */ 147 */
148 WebInspector.DocumentationURLProvider._articleListUrlFormat = "http://docs.webpl atform.org/w/api.php?action=query&generator=allpages&gaplimit=500&gapfrom=%s&for mat=json"; 148 WebInspector.DocumentationURLProvider._articleUrlFormat = WebInspector.Documenta tionURLProvider.urlPrefix + "/w/api.php?action=query&titles=%s%s&prop=revisions& rvprop=timestamp|content&format=json";
149 149
150 /** 150 /**
151 * @const 151 * @const
152 */
153 WebInspector.DocumentationURLProvider._articleListUrlFormat = WebInspector.Docum entationURLProvider.urlPrefix + "/w/api.php?action=query&generator=allpages&gapl imit=500&gapfrom=%s&format=json";
154
155 /**
156 * @const
152 */ 157 */
153 WebInspector.DocumentationURLProvider._gapFromList = [ 158 WebInspector.DocumentationURLProvider._gapFromList = [
154 "dom/Node/", 159 "dom/Node/",
155 "javascript/" 160 "javascript/"
156 ]; 161 ];
157 162
158 WebInspector.DocumentationURLProvider.prototype = { 163 WebInspector.DocumentationURLProvider.prototype = {
159 /** 164 /**
160 * @param {string} searchTerm 165 * @param {string} searchTerm
161 * @return {!Array.<!WebInspector.DocumentationURLProvider.ItemDescriptor>} 166 * @return {!Array.<!WebInspector.DocumentationURLProvider.ItemDescriptor>}
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 * FIXME: object parameter is not annotated properly due to crbug.com/407097 257 * FIXME: object parameter is not annotated properly due to crbug.com/407097
253 * @param {*} object 258 * @param {*} object
254 * @param {string} propertyName 259 * @param {string} propertyName
255 * @return {boolean} 260 * @return {boolean}
256 */ 261 */
257 _inheritedFromFunction: function(object, propertyName) 262 _inheritedFromFunction: function(object, propertyName)
258 { 263 {
259 return (object instanceof Function && object.hasOwnProperty(propertyName ) && Function.hasOwnProperty(propertyName)); 264 return (object instanceof Function && object.hasOwnProperty(propertyName ) && Function.hasOwnProperty(propertyName));
260 } 265 }
261 } 266 }
OLDNEW
« no previous file with comments | « LayoutTests/inspector/documentation/documentation-url-provider.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698