OLD | NEW |
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/build/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]) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |