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

Side by Side Diff: test/utils_test.dart

Issue 1311323002: Modernize the style. (Closed) Base URL: git@github.com:dart-lang/oauth2.git@master
Patch Set: Created 5 years, 3 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
« lib/src/authorization_code_grant.dart ('K') | « test/utils.dart ('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
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;
6
7 import 'package:oauth2/src/utils.dart'; 5 import 'package:oauth2/src/utils.dart';
8 import 'package:test/test.dart'; 6 import 'package:test/test.dart';
9 7
10 void main() { 8 void main() {
11 group('AuthenticateHeader', () { 9 group('AuthenticateHeader', () {
12 test("parses a scheme", () { 10 test("parses a scheme", () {
13 var header = new AuthenticateHeader.parse('bearer'); 11 var header = new AuthenticateHeader.parse('bearer');
14 expect(header.scheme, equals('bearer')); 12 expect(header.scheme, equals('bearer'));
15 expect(header.parameters, equals({})); 13 expect(header.parameters, equals({}));
16 }); 14 });
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 expect(() => new AuthenticateHeader.parse('bearer foo="bar",'), 79 expect(() => new AuthenticateHeader.parse('bearer foo="bar",'),
82 throwsFormatException); 80 throwsFormatException);
83 }); 81 });
84 82
85 test("won't parse a multiple params without a comma", () { 83 test("won't parse a multiple params without a comma", () {
86 expect(() => new AuthenticateHeader.parse('bearer foo="bar" bar="baz"'), 84 expect(() => new AuthenticateHeader.parse('bearer foo="bar" bar="baz"'),
87 throwsFormatException); 85 throwsFormatException);
88 }); 86 });
89 }); 87 });
90 } 88 }
OLDNEW
« lib/src/authorization_code_grant.dart ('K') | « test/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698