Chromium Code Reviews| Index: chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py |
| diff --git a/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py b/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py |
| index 310d6b0d97576ed0182b09e07b4e0b1f65009a5f..d0daea0ef5191ab9425610c4e7014d4489fb4c30 100644 |
| --- a/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py |
| +++ b/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py |
| @@ -13,7 +13,8 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { |
| 'docs': { |
| 'templates': { |
| 'json': { |
| - 'api_availabilities.json': '{}' |
| + 'api_availabilities.json': '{}', |
| + 'intro_tables.json': '{}' |
| } |
| } |
| }, |
| @@ -26,27 +27,51 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { |
| 'types': [ |
| { |
| 'id': 'Tab', |
| + 'type': 'any', |
|
ahernandez
2014/06/26 23:53:32
I added a bunch of these 'type' keys so json_schem
|
| 'properties': { |
| - 'url': {}, |
| - 'index': {}, |
| - 'selected': {}, |
| - 'id': {}, |
| - 'windowId': {} |
| + 'url': { |
| + 'type': 'any' |
| + }, |
| + 'index': { |
| + 'type': 'any' |
| + }, |
| + 'selected': { |
| + 'type': 'any' |
| + }, |
| + 'id': { |
| + 'type': 'any' |
| + }, |
| + 'windowId': { |
| + 'type': 'any' |
| + } |
| } |
| }, |
| { |
| 'id': 'InjectDetails', |
| + 'type': 'any', |
| 'properties': { |
| - 'allFrames': {}, |
| - 'code': {}, |
| - 'file': {} |
| + 'allFrames': { |
| + 'type': 'any' |
| + }, |
| + 'code': { |
| + 'type': 'any' |
| + }, |
| + 'file': { |
| + 'type':'any' |
| + } |
| } |
| } |
| ], |
| 'properties': { |
| - 'fakeTabsProperty1': {}, |
| - 'fakeTabsProperty2': {}, |
| - 'fakeTabsProperty3': {} |
| + 'fakeTabsProperty1': { |
| + 'type': 'any' |
| + }, |
| + 'fakeTabsProperty2': { |
| + 'type': 'any' |
| + }, |
| + 'fakeTabsProperty3': { |
| + 'type': 'any' |
| + } |
| }, |
| 'functions': [ |
| { |
| @@ -54,9 +79,11 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { |
| 'parameters': [ |
| { |
| 'name': 'callback', |
| + 'type': 'function', |
| 'parameters': [ |
| { |
| - 'name': 'tab' |
| + 'name': 'tab', |
| + 'type': 'any' |
| } |
| ] |
| } |
| @@ -67,14 +94,17 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { |
| 'parameters': [ |
| { |
| 'name': 'callback', |
| + 'type': 'function', |
| 'parameters': [ |
| { |
| - 'name': 'tab' |
| + 'name': 'tab', |
| + 'type': 'any' |
| } |
| ] |
| }, |
| { |
| - 'name': 'tabId' |
| + 'name': 'tabId', |
| + 'type': 'any' |
| } |
| ] |
| } |
| @@ -82,30 +112,44 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { |
| 'events': [ |
| { |
| 'name': 'onActivated', |
| + 'type': 'event', |
| 'parameters': [ |
| { |
| 'name': 'activeInfo', |
| + 'type': 'any', |
| 'properties': { |
| - 'tabId': {}, |
| - 'windowId': {} |
| + 'tabId': { |
| + 'type': 'any' |
| + }, |
| + 'windowId': { |
| + 'type': 'any' |
| + } |
| } |
| } |
| ] |
| }, |
| { |
| 'name': 'onUpdated', |
| + 'type': 'event', |
| 'parameters': [ |
| { |
| - 'name': 'tabId' |
| + 'name': 'tabId', |
| + 'type': 'any' |
| }, |
| { |
| - 'name': 'tab' |
| + 'name': 'tab', |
| + 'type': 'any' |
| }, |
| { |
| 'name': 'changeInfo', |
| + 'type': 'any', |
| 'properties': { |
| - 'pinned': {}, |
| - 'status': {} |
| + 'pinned': { |
| + 'type': 'any' |
| + }, |
| + 'status': { |
| + 'type': 'any' |
| + } |
| } |
| } |
| ] |