| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import json | 5 import json |
| 6 | 6 |
| 7 from extensions_paths import CHROME_EXTENSIONS | 7 from extensions_paths import CHROME_EXTENSIONS |
| 8 from test_file_system import MoveAllTo | 8 from test_file_system import MoveAllTo |
| 9 from test_util import ReadFile | 9 from test_util import ReadFile |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 'type': 'any' | 132 'type': 'any' |
| 133 } | 133 } |
| 134 ] | 134 ] |
| 135 } | 135 } |
| 136 ] | 136 ] |
| 137 }, | 137 }, |
| 138 { | 138 { |
| 139 'name': 'get', | 139 'name': 'get', |
| 140 'parameters': [ | 140 'parameters': [ |
| 141 { | 141 { |
| 142 'name': 'tabId', |
| 143 'type': 'any' |
| 144 }, |
| 145 { |
| 142 'name': 'callback', | 146 'name': 'callback', |
| 143 'type': 'function', | 147 'type': 'function', |
| 144 'parameters': [ | 148 'parameters': [ |
| 145 { | 149 { |
| 146 'name': 'tab', | 150 'name': 'tab', |
| 147 'type': 'any' | 151 'type': 'any' |
| 148 } | 152 } |
| 149 ] | 153 ] |
| 150 }, | |
| 151 { | |
| 152 'name': 'tabId', | |
| 153 'type': 'any' | |
| 154 } | 154 } |
| 155 ] | 155 ] |
| 156 }, | 156 }, |
| 157 { | 157 { |
| 158 'name': 'restrictedFunc' | 158 'name': 'restrictedFunc' |
| 159 }, | 159 }, |
| 160 { | 160 { |
| 161 'name': 'scheduledFunc', | 161 'name': 'scheduledFunc', |
| 162 'parameters': [] | 162 'parameters': [] |
| 163 } | 163 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 'name': 'tab' | 262 'name': 'tab' |
| 263 } | 263 } |
| 264 ] | 264 ] |
| 265 } | 265 } |
| 266 ] | 266 ] |
| 267 }, | 267 }, |
| 268 { | 268 { |
| 269 'name': 'get', | 269 'name': 'get', |
| 270 'parameters': [ | 270 'parameters': [ |
| 271 { | 271 { |
| 272 'name': 'tabId' |
| 273 }, |
| 274 { |
| 272 'name': 'callback', | 275 'name': 'callback', |
| 273 'parameters': [ | 276 'parameters': [ |
| 274 { | 277 { |
| 275 'name': 'tab' | 278 'name': 'tab' |
| 276 } | 279 } |
| 277 ] | 280 ] |
| 278 }, | |
| 279 { | |
| 280 'name': 'tabId' | |
| 281 } | 281 } |
| 282 ] | 282 ] |
| 283 }, | 283 }, |
| 284 { | 284 { |
| 285 'name': 'restrictedFunc' | 285 'name': 'restrictedFunc' |
| 286 }, | 286 }, |
| 287 { | 287 { |
| 288 'name': 'scheduledFunc', | 288 'name': 'scheduledFunc', |
| 289 'parameters': [] | 289 'parameters': [] |
| 290 } | 290 } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 'name': 'tab' | 371 'name': 'tab' |
| 372 } | 372 } |
| 373 ] | 373 ] |
| 374 } | 374 } |
| 375 ] | 375 ] |
| 376 }, | 376 }, |
| 377 { | 377 { |
| 378 'name': 'get', | 378 'name': 'get', |
| 379 'parameters': [ | 379 'parameters': [ |
| 380 { | 380 { |
| 381 'name': 'tabId' |
| 382 }, |
| 383 { |
| 381 'name': 'callback', | 384 'name': 'callback', |
| 382 'parameters': [ | 385 'parameters': [ |
| 383 { | 386 { |
| 384 'name': 'tab' | 387 'name': 'tab' |
| 385 } | 388 } |
| 386 ] | 389 ] |
| 387 }, | |
| 388 { | |
| 389 'name': 'tabId' | |
| 390 } | 390 } |
| 391 ] | 391 ] |
| 392 }, | 392 }, |
| 393 { | 393 { |
| 394 'name': 'restrictedFunc' | 394 'name': 'restrictedFunc' |
| 395 } | 395 } |
| 396 ], | 396 ], |
| 397 'events': [ | 397 'events': [ |
| 398 { | 398 { |
| 399 'name': 'onActivated', | 399 'name': 'onActivated', |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 ] | 1492 ] |
| 1493 }]) | 1493 }]) |
| 1494 } | 1494 } |
| 1495 }, | 1495 }, |
| 1496 '782': { | 1496 '782': { |
| 1497 'api': { | 1497 'api': { |
| 1498 'extension_api.json': "{}" | 1498 'extension_api.json': "{}" |
| 1499 } | 1499 } |
| 1500 } | 1500 } |
| 1501 }) | 1501 }) |
| OLD | NEW |