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

Side by Side Diff: chrome/test/data/extensions/api_test/dial/experimental/fetch_device_description.js

Issue 2583853004: [chrome.dial] Adds chrome.dial.fetchDeviceDecription API. (Closed)
Patch Set: Respond to lazyboy@ comments. Rebase w/namespace changes Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 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 onload = function() {
6 chrome.test.runTests([
7 function fetchDeviceDecription() {
8 var fetchDeviceDescriptionCallback = function(result) {
9 chrome.test.assertNoLastError();
10 chrome.test.assertEq('object', typeof(result));
11 chrome.test.assertEq('http://127.0.0.1/apps', result.appUrl);
12 chrome.test.assertEq('<xml>testDescription</xml>',
13 result.deviceDescription);
14 chrome.test.succeed();
15 };
16 chrome.dial.fetchDeviceDescription('testDevice',
17 fetchDeviceDescriptionCallback);
Wez 2017/01/05 22:29:25 Shall we add a test case for API failure?
mark a. foltz 2017/01/09 21:38:08 Done.
18 }
19 ]);
20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698