| Index: chrome/test/data/extensions/api_test/serial/real_hardware/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/serial/real_hardware/background.js b/chrome/test/data/extensions/api_test/serial/real_hardware/background.js
|
| index 05f25311580352cddb00900ad250ada5a36980a7..27e033d0e9eeb7927db2ce3f2759f71f6bbda9b8 100644
|
| --- a/chrome/test/data/extensions/api_test/serial/real_hardware/background.js
|
| +++ b/chrome/test/data/extensions/api_test/serial/real_hardware/background.js
|
| @@ -16,7 +16,7 @@ var testGetPorts = function() {
|
| chrome.test.succeed();
|
| }
|
|
|
| - chrome.experimental.serial.getPorts(onGetPorts);
|
| + chrome.serial.getPorts(onGetPorts);
|
| };
|
|
|
| var testMaybeOpenPort = function() {
|
| @@ -44,7 +44,7 @@ var testMaybeOpenPort = function() {
|
| var onOpen = function(connectionInfo) {
|
| var id = connectionInfo.connectionId;
|
| if (id > 0)
|
| - chrome.experimental.serial.close(id, onClose);
|
| + chrome.serial.close(id, onClose);
|
| else
|
| onFinishedWithPort();
|
| };
|
| @@ -56,7 +56,7 @@ var testMaybeOpenPort = function() {
|
| onFinishedWithPort();
|
| } else {
|
| console.log("Opening serial device " + port);
|
| - chrome.experimental.serial.open(port, onOpen);
|
| + chrome.serial.open(port, onOpen);
|
| }
|
| }
|
|
|
| @@ -67,7 +67,7 @@ var testMaybeOpenPort = function() {
|
| }
|
| }
|
|
|
| - chrome.experimental.serial.getPorts(onGetPorts);
|
| + chrome.serial.getPorts(onGetPorts);
|
| };
|
|
|
| var tests = [testGetPorts, testMaybeOpenPort];
|
|
|