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

Unified Diff: chrome/test/data/extensions/platform_apps/music_manager_private/device_id_value_returned/chrometest.js

Issue 15738013: Initial implementation of music manager private API. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing. Created 7 years, 7 months 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/platform_apps/music_manager_private/device_id_value_returned/chrometest.js
diff --git a/chrome/test/data/extensions/platform_apps/music_manager_private/device_id_value_returned/chrometest.js b/chrome/test/data/extensions/platform_apps/music_manager_private/device_id_value_returned/chrometest.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb18bb04e56065249be8e40a689af9bf9455c1af
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/music_manager_private/device_id_value_returned/chrometest.js
@@ -0,0 +1,22 @@
+// Copyright 2013 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.
+
+function runTests() {
+ chrome.test.runTests([
+ function test() {
+ chrome.musicManagerPrivate.getDeviceId(function(id) {
+ console.log("Device ID=" + id);
+ chrome.test.assertEq("string", typeof id);
+ chrome.test.assertTrue(id.length >= 8);
+ chrome.test.succeed();
+ });
+ }
+ ]);
+}
+
+window.onload = function() {
+ chrome.test.getConfig(function(config) {
+ runTests();
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698