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

Side by Side Diff: chrome/test/data/extensions/api_test/identity/test.js

Issue 11221002: Merge 162639 - Implement size and position support for launchWebAuthFlow. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « chrome/test/data/extensions/api_test/identity/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 assertEq = chrome.test.assertEq;
6 var pass = chrome.test.callbackPass;
7
8 chrome.test.runTests([
9 function getAuthToken() {
10 chrome.experimental.identity.getAuthToken(
11 pass(function(token) {
12 assertEq('auth_token', token);
13 }));
14 },
15
16 function launchAuthFlow() {
17 chrome.experimental.identity.launchWebAuthFlow(
18 {url: 'https://some/url'},
19 pass(function(url) {
20 assertEq('https://abcd.chromiumapp.org/cb#access_token=tok', url);
21 }));
22 }
23 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/identity/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698