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

Unified Diff: client/tests/client/util/util_tests.dart

Issue 9382027: Move client/{base, observable, layout, touch, util, view} to samples/ui_lib . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/client/touch/touch_tests.dart ('k') | client/tests/client/view/view_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/util/util_tests.dart
===================================================================
--- client/tests/client/util/util_tests.dart (revision 4144)
+++ client/tests/client/util/util_tests.dart (working copy)
@@ -1,43 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#library('util_tests');
-
-#import('dart:html');
-#import('../../../testing/unittest/unittest.dart');
-#import('../../../util/utilslib.dart');
-
-main() {
- test('insertAt', () {
- var a = [];
- CollectionUtils.insertAt(a, 0, 1);
- expect(a).equalsCollection([1]);
-
- CollectionUtils.insertAt(a, 0, 2);
- expect(a).equalsCollection([2, 1]);
-
- CollectionUtils.insertAt(a, 0, 5);
- CollectionUtils.insertAt(a, 0, 4);
- CollectionUtils.insertAt(a, 0, 3);
- expect(a).equalsCollection([3, 4, 5, 2, 1]);
-
- a = [];
- CollectionUtils.insertAt(a, 0, 1);
- expect(a).equalsCollection([1]);
-
- CollectionUtils.insertAt(a, 1, 2);
- expect(a).equalsCollection([1, 2]);
-
- CollectionUtils.insertAt(a, 1, 3);
- CollectionUtils.insertAt(a, 3, 4);
- CollectionUtils.insertAt(a, 3, 5);
- expect(a).equalsCollection([1, 3, 2, 5, 4]);
- });
-
- test('defaultString', () {
- expect(StringUtils.defaultString(null)).equals('');
- expect(StringUtils.defaultString('')).equals('');
- expect(StringUtils.defaultString('test')).equals('test');
- });
-}
« no previous file with comments | « client/tests/client/touch/touch_tests.dart ('k') | client/tests/client/view/view_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698