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

Unified 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: fixing build on windows 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 side-by-side diff with in-line comments
Download patch
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..046b6b6b4aec865ef1aa6ca0a72be6ac41eac254
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/developer/test/basics.js
@@ -0,0 +1,28 @@
+// 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(true, // include disabled
+ true, // include terminated
+ callback(function(items) {
+ chrome.test.assertEq(3, items.length);
+
+ checkItemInList(items, "hosted_app", true, "hosted_app",
+ { "app_launch_url": "http://www.google.com/",
+ "offline_enabled": true,
+ "update_url": "http://example.com/update.xml" });
+
+ checkItemInList(items, "simple_extension", true, "extension",
+ { "homepage_url": "http://example.com/",
+ "options_url": "chrome-extension://<ID>/pages/options.html"});
+
+ var extension = getItemNamed(items, "packaged_app");
+ checkItemInList(items, "packaged_app", true, "packaged_app",
+ { "offline_enabled": true});
+ }));
+ }
+];
+
+chrome.test.runTests(tests);

Powered by Google App Engine
This is Rietveld 408576698