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.
7 chrome.developerPrivate.getItemsInfo(true, // include disabled
8 true, // include terminated
9 callback(function(items) {
10 chrome.test.assertEq(3, items.length);
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" });
17 checkItemInList(items, "simple_extension", true, "extension",
18 { "homepage_url": "http://example.com/",
19 "options_url": "chrome-extension://<ID>/pages/options.html"});
21 var extension = getItemNamed(items, "packaged_app");
22 checkItemInList(items, "packaged_app", true, "packaged_app",
23 { "offline_enabled": true});
28 chrome.test.runTests(tests);