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

Side by Side Diff: pkg/oauth2/test/utils_test.dart

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 9 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 | « pkg/oauth2/test/utils.dart ('k') | pkg/scheduled_test/lib/descriptor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library utils_test; 5 library utils_test;
6 6
7 import '../../../pkg/unittest/lib/unittest.dart'; 7 import 'package:oauth2/src/utils.dart';
8 import '../lib/src/utils.dart'; 8 import 'package:unittest/unittest.dart';
9
10 9
11 void main() { 10 void main() {
12 group('AuthenticateHeader', () { 11 group('AuthenticateHeader', () {
13 test("parses a scheme", () { 12 test("parses a scheme", () {
14 var header = new AuthenticateHeader.parse('bearer'); 13 var header = new AuthenticateHeader.parse('bearer');
15 expect(header.scheme, equals('bearer')); 14 expect(header.scheme, equals('bearer'));
16 expect(header.parameters, equals({})); 15 expect(header.parameters, equals({}));
17 }); 16 });
18 17
19 test("lower-cases the scheme", () { 18 test("lower-cases the scheme", () {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 expect(() => new AuthenticateHeader.parse('bearer foo="bar",'), 81 expect(() => new AuthenticateHeader.parse('bearer foo="bar",'),
83 throwsFormatException); 82 throwsFormatException);
84 }); 83 });
85 84
86 test("won't parse a multiple params without a comma", () { 85 test("won't parse a multiple params without a comma", () {
87 expect(() => new AuthenticateHeader.parse('bearer foo="bar" bar="baz"'), 86 expect(() => new AuthenticateHeader.parse('bearer foo="bar" bar="baz"'),
88 throwsFormatException); 87 throwsFormatException);
89 }); 88 });
90 }); 89 });
91 } 90 }
OLDNEW
« no previous file with comments | « pkg/oauth2/test/utils.dart ('k') | pkg/scheduled_test/lib/descriptor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698