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

Side by Side Diff: pkg/polymer/test/build/utils_test.dart

Issue 24149003: Port of github.com/polymer/polymer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 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
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 /** Tests for some of the utility helper functions used by the compiler. */ 5 /** Tests for some of the utility helper functions used by the compiler. */
6 library polymer.test.utils_test; 6 library polymer.test.utils_test;
7 7
8 import 'package:unittest/compact_vm_config.dart'; 8 import 'package:unittest/compact_vm_config.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'package:polymer/src/utils.dart'; 10 import 'package:polymer/src/build/utils.dart';
11 11
12 main() { 12 main() {
13 useCompactVMConfiguration(); 13 useCompactVMConfiguration();
14 14
15 for (bool startUppercase in [false, true]) { 15 for (bool startUppercase in [false, true]) {
16 Matcher caseEquals(String str) { 16 Matcher caseEquals(String str) {
17 if (startUppercase) str = str[0].toUpperCase() + str.substring(1); 17 if (startUppercase) str = str[0].toUpperCase() + str.substring(1);
18 return equals(str); 18 return equals(str);
19 } 19 }
20 20
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 expect(toHyphenedName('Hi'), 'hi'); 77 expect(toHyphenedName('Hi'), 'hi');
78 expect(toHyphenedName('Hi-'), 'hi-'); 78 expect(toHyphenedName('Hi-'), 'hi-');
79 expect(toHyphenedName('HiFriend'), 'hi-friend'); 79 expect(toHyphenedName('HiFriend'), 'hi-friend');
80 }); 80 });
81 81
82 test('consecutive capital letters', () { 82 test('consecutive capital letters', () {
83 expect(toHyphenedName('aBC'), 'a-b-c'); 83 expect(toHyphenedName('aBC'), 'a-b-c');
84 }); 84 });
85 }); 85 });
86 } 86 }
OLDNEW
« no previous file with comments | « pkg/polymer/test/build/linter_test.dart ('k') | pkg/polymer/test/prop_attr_reflection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698