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

Unified Diff: pkg/analyzer/test/src/task/targets_test.dart

Issue 812733004: Initial task support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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: pkg/analyzer/test/src/task/targets_test.dart
diff --git a/pkg/analyzer/test/src/task/targets_test.dart b/pkg/analyzer/test/src/task/targets_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..eb25284182275eaa096eea947acc559c47572aca
--- /dev/null
+++ b/pkg/analyzer/test/src/task/targets_test.dart
@@ -0,0 +1,27 @@
+// Copyright (c) 2015, 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 test.src.task.targets_test;
+
+import 'package:analyzer/src/generated/source.dart';
+import 'package:analyzer/src/task/targets.dart';
+import 'package:unittest/unittest.dart';
+
+import '../../generated/test_support.dart';
+import '../../reflective_tests.dart';
+
+main() {
+ groupSep = ' | ';
+ runReflectiveTests(SourceTargetTest);
+}
+
+@reflectiveTest
+class SourceTargetTest extends EngineTestCase {
+ test_create() {
+ Source source = new TestSource();
+ SourceTarget target = new SourceTarget(source);
+ expect(target, isNotNull);
+ expect(target.source, source);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698