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

Side by Side Diff: chrome/test/data/extensions/api_test/bluetooth_private/no_adapter/test.js

Issue 1419023004: Add bluetoothPrivate.connect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_543294_bluetooth_options_2b_props
Patch Set: Rebase Created 5 years, 1 month 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function testSetAdapterStateFails() { 5 function testSetAdapterStateFails() {
6 var newState = { 6 var newState = {
7 name: 'Dome', 7 name: 'Dome',
8 powered: true, 8 powered: true,
9 discoverable: true 9 discoverable: true
10 }; 10 };
11 11
12 chrome.bluetoothPrivate.setAdapterState(newState, function() { 12 chrome.bluetoothPrivate.setAdapterState(newState, function() {
13 chrome.test.assertLastError('Could not find a Bluetooth adapter.'); 13 chrome.test.assertLastError('Failed to find a Bluetooth adapter');
14 chrome.test.succeed() 14 chrome.test.succeed();
15 }); 15 });
16 } 16 }
17 17
18 chrome.test.runTests([ testSetAdapterStateFails ]); 18 chrome.test.runTests([ testSetAdapterStateFails ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698