OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 var tests = [ |
| 6 function simple() { |
| 7 chrome.developerPrivate.getItemsInfo(true, // include disabled |
| 8 true, // include terminated |
| 9 callback(function(items) { |
| 10 chrome.test.assertEq(3, items.length); |
| 11 |
| 12 checkItemInList(items, "hosted_app", true, "hosted_app", |
| 13 { "app_launch_url": "http://www.google.com/", |
| 14 "offline_enabled": true, |
| 15 "update_url": "http://example.com/update.xml" }); |
| 16 |
| 17 checkItemInList(items, "simple_extension", true, "extension", |
| 18 { "homepage_url": "http://example.com/", |
| 19 "options_url": "chrome-extension://<ID>/pages/options.html"}); |
| 20 |
| 21 var extension = getItemNamed(items, "packaged_app"); |
| 22 checkItemInList(items, "packaged_app", true, "packaged_app", |
| 23 { "offline_enabled": true}); |
| 24 })); |
| 25 } |
| 26 ]; |
| 27 |
| 28 chrome.test.runTests(tests); |
OLD | NEW |