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

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

Issue 11614021: Revert 173612 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
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(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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698