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

Unified Diff: chrome/test/data/extensions/api_test/bluetooth/get_devices_error/runtest.js

Issue 177113013: Bluetooth: add Device events, and cleanup JS API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@arman-patch
Patch Set: I suck at rebase Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/bluetooth/get_devices_error/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/bluetooth/get_devices_error/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth/get_devices_error/runtest.js b/chrome/test/data/extensions/api_test/bluetooth/get_devices_error/runtest.js
deleted file mode 100644
index 5cae206327e0a14b310f75e9f65ba58abddbfcf9..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/bluetooth/get_devices_error/runtest.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) 2012 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.
-
-function testGetDevicesReturnsError() {
- chrome.test.assertEq("Invalid UUID", error);
- chrome.test.succeed();
-}
-
-var error = "";
-chrome.bluetooth.getDevices(
- {
- profile: {uuid:'this is nonsense'},
- deviceCallback: function() {}
- },
- function() {
- if (chrome.runtime.lastError) {
- error = chrome.runtime.lastError.message;
- }
- chrome.test.sendMessage('ready',
- function(message) {
- chrome.test.runTests([testGetDevicesReturnsError]);
- });
- });
« no previous file with comments | « chrome/test/data/extensions/api_test/bluetooth/get_devices_error/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698