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

Side by Side Diff: chrome/test/data/extensions/api_test/serial/api/background.js

Issue 9174019: Add skeleton plumbing for serial API. No functionality yet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 var testSerial = function() {
6 var onClose = function(result) {
7 chrome.test.assertTrue(result);
8 chrome.test.succeed();
9 }
10
11 var onOpen = function(connectionInfo) {
12 var connectionId = connectionInfo.connectionId;
13 chrome.test.assertTrue(connectionId > 0);
14 chrome.experimental.serial.close(connectionId, onClose);
15 }
16
17 chrome.experimental.serial.open("/dev/null", onOpen);
18 };
19
20 chrome.test.runTests([testSerial]);
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/js/api_page_generator.js ('k') | chrome/test/data/extensions/api_test/serial/api/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698