| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 function getTokenWithoutParameters() { | 5 function getTokenWithoutParameters() { |
| 6 try { | 6 try { |
| 7 chrome.instanceID.getToken(); | 7 chrome.instanceID.getToken(); |
| 8 chrome.test.fail( | 8 chrome.test.fail( |
| 9 "Calling getToken without parameters should fail."); | 9 "Calling getToken without parameters should fail."); |
| 10 } catch (e) { | 10 } catch (e) { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 120 } |
| 121 | 121 |
| 122 chrome.test.runTests([ | 122 chrome.test.runTests([ |
| 123 getTokenWithoutParameters, | 123 getTokenWithoutParameters, |
| 124 getTokenWithoutCallback, | 124 getTokenWithoutCallback, |
| 125 getTokenWithoutAuthorizedEntity, | 125 getTokenWithoutAuthorizedEntity, |
| 126 getTokenWithInvalidAuthorizedEntity, | 126 getTokenWithInvalidAuthorizedEntity, |
| 127 getTokenWithoutScope, | 127 getTokenWithoutScope, |
| 128 getTokenWithInvalidScope, | 128 getTokenWithInvalidScope, |
| 129 getTokenWithInvalidOptionValue, | 129 getTokenWithInvalidOptionValue, |
| 130 // TODO(jianli): To be enabled when GetToken is implemented. | 130 getTokenWithoutOptions, |
| 131 //getTokenWithoutOptions, | 131 getTokenWithValidOptions, |
| 132 //getTokenWithValidOptions, | |
| 133 ]); | 132 ]); |
| OLD | NEW |