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

Side by Side Diff: samples/tests/samples/src/lib/util/UtilTest.dart

Issue 10037027: unittest step2: bye bye to multiple entrypoints for unittest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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('util_tests'); 5 #library('util_tests');
6 6
7 #import('dart:html'); 7 #import('dart:html');
8 #import('../../../../../../lib/unittest/unittest_html.dart'); 8 #import('../../../../../../lib/unittest/unittest.dart');
9 #import('../../../../../../lib/unittest/html_config.dart');
9 #import('../../../../../ui_lib/util/utilslib.dart'); 10 #import('../../../../../ui_lib/util/utilslib.dart');
10 11
11 main() { 12 main() {
13 useHtmlConfiguration();
12 test('insertAt', () { 14 test('insertAt', () {
13 var a = []; 15 var a = [];
14 CollectionUtils.insertAt(a, 0, 1); 16 CollectionUtils.insertAt(a, 0, 1);
15 expect(a).equalsCollection([1]); 17 expect(a).equalsCollection([1]);
16 18
17 CollectionUtils.insertAt(a, 0, 2); 19 CollectionUtils.insertAt(a, 0, 2);
18 expect(a).equalsCollection([2, 1]); 20 expect(a).equalsCollection([2, 1]);
19 21
20 CollectionUtils.insertAt(a, 0, 5); 22 CollectionUtils.insertAt(a, 0, 5);
21 CollectionUtils.insertAt(a, 0, 4); 23 CollectionUtils.insertAt(a, 0, 4);
(...skipping 12 matching lines...) Expand all
34 CollectionUtils.insertAt(a, 3, 5); 36 CollectionUtils.insertAt(a, 3, 5);
35 expect(a).equalsCollection([1, 3, 2, 5, 4]); 37 expect(a).equalsCollection([1, 3, 2, 5, 4]);
36 }); 38 });
37 39
38 test('defaultString', () { 40 test('defaultString', () {
39 expect(StringUtils.defaultString(null)).equals(''); 41 expect(StringUtils.defaultString(null)).equals('');
40 expect(StringUtils.defaultString('')).equals(''); 42 expect(StringUtils.defaultString('')).equals('');
41 expect(StringUtils.defaultString('test')).equals('test'); 43 expect(StringUtils.defaultString('test')).equals('test');
42 }); 44 });
43 } 45 }
OLDNEW
« no previous file with comments | « samples/tests/samples/src/lib/touch/TouchTest.dart ('k') | samples/tests/samples/src/lib/view/ViewTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698