OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 var assertEq = chrome.test.assertEq; | 5 var assertEq = chrome.test.assertEq; |
6 var pass = chrome.test.callbackPass; | 6 var pass = chrome.test.callbackPass; |
7 | 7 |
8 chrome.test.runTests([ | 8 chrome.test.runTests([ |
9 function getAuthToken() { | 9 function getAuthToken() { |
10 chrome.experimental.identity.getAuthToken(pass(function(token) { | 10 chrome.experimental.identity.getAuthToken(pass(function(token) { |
11 assertEq("auth_token", token); | 11 assertEq("auth_token", token); |
12 })); | 12 })); |
13 }, | |
14 | |
15 function launchAuthFlow() { | |
16 chrome.experimental.identity.launchAuthFlow( | |
17 {url: "https://some/url"}, | |
Mihai Parparita -not on Chrome
2012/05/04 22:37:18
This test won't actually work right now, right?
Y
| |
18 pass(function(responseUrl) { | |
19 assertEq("https://test/url", responseUrl); | |
20 })); | |
13 } | 21 } |
14 ]); | 22 ]); |
OLD | NEW |