| Index: chrome/test/data/extensions/api_test/developer/test/basics.js
|
| diff --git a/chrome/test/data/extensions/api_test/developer/test/basics.js b/chrome/test/data/extensions/api_test/developer/test/basics.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5973d0aa83a2c296527ef291db8a0b628a1cd273
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/developer/test/basics.js
|
| @@ -0,0 +1,34 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +var tests = [
|
| + function simple() {
|
| + chrome.developerPrivate.getItemsInfo(callback(function(items) {
|
| + chrome.test.assertEq(3, items.length);
|
| +
|
| + // Check that we got the icon correctly
|
| + var extension = getItemNamed(items, "simple_extension");
|
| + var expected_url =
|
| + "chrome://extension-icon/" + extension.id + "/" + 48 + "/1";
|
| + assertEq(expected_url, extension.icon);
|
| + checkItemInList(items, "hosted_app", true, "hosted_app",
|
| + { "appLaunchUrl": "http://www.google.com/",
|
| + "offlineEnabled": true,
|
| + "updateUrl": "http://example.com/update.xml" });
|
| +
|
| + checkItemInList(items, "simple_extension", true, "extension",
|
| + { "homepageUrl": "http://example.com/",
|
| + "optionsUrl": "chrome-extension://<ID>/pages/options.html"});
|
| +
|
| + var extension = getItemNamed(items, "packaged_app");
|
| + var launch_url = "chrome-extension://" + extension.id
|
| + + "/main.html";
|
| + checkItemInList(items, "packaged_app", true, "legacy_packaged_app",
|
| + { "appLaunchUrl": launch_url,
|
| + "offlineEnabled": true});
|
| + }));
|
| + }
|
| +];
|
| +
|
| +chrome.test.runTests(tests);
|
|
|