Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / bluetooth_private / no_adapter / test.js
blobab1bcd5cbd8e6424b121c71f895231d4a326ef6d
1 // Copyright 2014 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.
5 function testSetAdapterStateFails() {
6   var newState = {
7     name: 'Dome',
8     powered: true,
9     discoverable: true
10   };
12   chrome.bluetoothPrivate.setAdapterState(newState, function() {
13     chrome.test.assertLastError('Could not find a Bluetooth adapter.');
14     chrome.test.succeed()
15   });
18 chrome.test.runTests([ testSetAdapterStateFails ]);