 Chromium Code Reviews
 Chromium Code Reviews Issue 2583853004:
  [chrome.dial] Adds chrome.dial.fetchDeviceDecription API.  (Closed)
    
  
    Issue 2583853004:
  [chrome.dial] Adds chrome.dial.fetchDeviceDecription API.  (Closed) 
  | OLD | NEW | 
|---|---|
| (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.assertTrue(typeof(result) == 'object'); | |
| 
lazyboy
2017/01/04 22:13:13
optional nit: use assertEq for these.
 
mark a. foltz
2017/01/05 19:16:35
Done.
 | |
| 11 chrome.test.assertTrue(result.appUrl == 'http://127.0.0.1/apps'); | |
| 12 chrome.test.assertTrue(result.deviceDescription == | |
| 13 '<xml>testDescription</xml>'); | |
| 14 chrome.test.succeed(); | |
| 15 }; | |
| 16 chrome.dial.fetchDeviceDescription('testDevice', | |
| 17 fetchDeviceDescriptionCallback); | |
| 18 } | |
| 19 ]); | |
| 20 }; | |
| OLD | NEW |