Commit efa48c0c authored by iliia@google.com's avatar iliia@google.com

DevTools: Add more JS DocumentationURLProvider sources and some tests for documentation

The following sources are added:
- Node
- Array.prototype
- Date.prototype
- Object.prototype
- String.prototype

BUG=391593

Review URL: https://codereview.chromium.org/455343002

git-svn-id: svn://svn.chromium.org/blink/trunk@180066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 778d1d13
......@@ -17,4 +17,8 @@ Property keys:
http://docs.webplatform.org/w/api.php?action=query&titles=javascript/Object/keys&prop=revisions&rvprop=timestamp|content&format=json
Property notExist:
null
Property indexOf:
http://docs.webplatform.org/w/api.php?action=query&titles=javascript/Array/indexOf&prop=revisions&rvprop=timestamp|content&format=json
Property setDate:
http://docs.webplatform.org/w/api.php?action=query&titles=javascript/Date/setDate&prop=revisions&rvprop=timestamp|content&format=json
......@@ -16,6 +16,8 @@ function test()
"fromCharCode",
"keys",
"notExist",
"indexOf",
"setDate"
];
var urlFormer = new WebInspector.DocumentationURLProvider();
for (var i = 0; i < testCases.length; ++i) {
......
......@@ -16,10 +16,15 @@ WebInspector.DocumentationURLProvider = function()
WebInspector.DocumentationURLProvider._sources = [
{ source: window, url: "javascript/" },
{ source: window.Node.prototype, url: "dom/Node/" },
{ source: window.Node, url: "dom/Node/" },
{ source: window.Object.prototype, url: "javascript/Object/" },
{ source: window.Object, url: "javascript/Object/" },
{ source: window.Math, url: "javascript/Math/" },
{ source: window.Array.prototype, url: "javascript/Array/" },
{ source: window.Array, url: "javascript/Array/" },
{ source: window.String.prototype, url: "javascript/String/" },
{ source: window.String, url: "javascript/String/" },
{ source: window.Date.prototype, url: "javascript/Date/" },
{ source: window.Date, url: "javascript/Date/" },
{ source: window.JSON, url: "javascript/JSON/" }
];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment