| OLD | NEW |
| (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 kPermissionError = "Extension does not have the permission to use this API"; | |
| 6 | |
| 7 chrome.test.runTests([ | |
| 8 function tryOpenExtension() { | |
| 9 chrome.terminalPrivate.openTerminalProcess("crosh", | |
| 10 chrome.test.callbackFail(kPermissionError)); | |
| 11 }, | |
| 12 function trySendInput() { | |
| 13 chrome.terminalPrivate.sendInput(1222, "some input", | |
| 14 chrome.test.callbackFail(kPermissionError)); | |
| 15 }, | |
| 16 function tryClose() { | |
| 17 chrome.terminalPrivate.closeTerminalProcess(1222, | |
| 18 chrome.test.callbackFail(kPermissionError)); | |
| 19 } | |
| 20 ]); | |
| OLD | NEW |