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

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

Issue 10916331: Revert 156348 (caused http://crbug.com/149828) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/test_getdevices_concurrently.html ('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/test_getdevices_concurrently.js
===================================================================
--- chrome/test/data/extensions/api_test/bluetooth/test_getdevices_concurrently.js (revision 157029)
+++ chrome/test/data/extensions/api_test/bluetooth/test_getdevices_concurrently.js (working copy)
@@ -1,31 +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 testGetDevicesConcurrently() {
- chrome.test.assertEq(1, errors.length);
-
- var kExpectedError = "Concurrent calls to getDevices are not allowed.";
- chrome.test.assertEq(kExpectedError, errors[0]);
-
- chrome.test.succeed();
-}
-
-function nop() {}
-
-var errors = [];
-function recordError() {
- if (chrome.runtime.lastError) {
- errors.push(chrome.runtime.lastError.message);
- }
-}
-
-var getDevicesOptions = { deviceCallback:nop, name:'foo' };
-chrome.experimental.bluetooth.getDevices(getDevicesOptions, recordError);
-chrome.experimental.bluetooth.getDevices(getDevicesOptions, recordError);
-chrome.test.sendMessage('ready',
- function(message) {
- chrome.test.runTests([
- testGetDevicesConcurrently
- ]);
- });
« no previous file with comments | « chrome/test/data/extensions/api_test/bluetooth/test_getdevices_concurrently.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698