Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Side by Side Diff: chrome/test/data/extensions/api_test/developer/test/basics.js

Issue 11428116: First few API implementation of AppsDebuggerPrivate. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding test files Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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(callback(function(items) {
8 chrome.test.assertEq(3, items.length);
9
10 // Check that we got the icon correctly
11 var extension = getItemNamed(items, "simple_extension");
12 var expected_url =
13 "chrome://extension-icon/" + extension.id + "/" + 48 + "/1";
14 assertEq(expected_url, extension.icon);
15 checkItemInList(items, "hosted_app", true, "hosted_app",
16 { "appLaunchUrl": "http://www.google.com/",
17 "offlineEnabled": true,
18 "updateUrl": "http://example.com/update.xml" });
19
20 checkItemInList(items, "simple_extension", true, "extension",
21 { "homepageUrl": "http://example.com/",
22 "optionsUrl": "chrome-extension://<ID>/pages/options.html"});
23
24 var extension = getItemNamed(items, "packaged_app");
25 var launch_url = "chrome-extension://" + extension.id
26 + "/main.html";
27 checkItemInList(items, "packaged_app", true, "legacy_packaged_app",
28 { "appLaunchUrl": launch_url,
29 "offlineEnabled": true});
30 }));
31 }
32 ];
33
34 chrome.test.runTests(tests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698