| Index: chrome/test/data/extensions/api_test/bluetooth_socket/permission_denied/runtest.js
|
| diff --git a/chrome/test/data/extensions/api_test/bluetooth_socket/permission_denied/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_socket/permission_denied/runtest.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7b0f1d86598521fa749e096d8dcbdd3be6c65606
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/bluetooth_socket/permission_denied/runtest.js
|
| @@ -0,0 +1,12 @@
|
| +// Copyright 2014 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.
|
| +
|
| +chrome.bluetoothSocket.create(
|
| + function(socket) {
|
| + if (!chrome.runtime.lastError) {
|
| + chrome.test.fail("Expected an error");
|
| + }
|
| + chrome.test.assertEq("Permission denied", chrome.runtime.lastError.message);
|
| + chrome.test.succeed();
|
| + });
|
|
|