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

Unified Diff: packages/charted/test.disabled/core/core_test.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: packages/charted/test.disabled/core/core_test.dart
diff --git a/packages/charted/test.disabled/core/core_test.dart b/packages/charted/test.disabled/core/core_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7f21b297a6b6dd0091210f650326d5093281d450
--- /dev/null
+++ b/packages/charted/test.disabled/core/core_test.dart
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2014 Google Inc. All rights reserved.
+ *
+ * Use of this source code is governed by a BSD-style
+ * license that can be found in the LICENSE file or at
+ * https://developers.google.com/open-source/licenses/bsd
+ */
+
+library charted.test.core;
+
+import 'dart:html' show document, Element;
+import 'package:unittest/unittest.dart';
+import 'package:charted/core/utils.dart';
+
+import 'dart:math' as math;
+
+part 'lists_test.dart';
+part 'namespace_test.dart';
+part 'color_test.dart';
+part 'math_test.dart';
+part 'object_factory_test.dart';
+
+coreTests() {
+ group('isNullOrEmpty()', () {
+ test('returns true when the object is null or empty', () {
+ expect(isNullOrEmpty(null), isTrue);
+ expect(isNullOrEmpty(''), isTrue);
+ expect(isNullOrEmpty({}), isTrue);
+ expect(isNullOrEmpty([]), isTrue);
+ });
+ test('returns false when the object is not null or empty', () {
+ expect(isNullOrEmpty([3]), isFalse);
+ });
+ });
+
+ testLists();
+ testNamespace();
+ testColor();
+ testMath();
+ testObjectFactory();
+}
« no previous file with comments | « packages/charted/test.disabled/core/color_test.dart ('k') | packages/charted/test.disabled/core/lists_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698