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

Unified Diff: pkg/analyzer_experimental/test/parse_compilation_unit_test.dart

Issue 45573002: Rename analyzer_experimental to analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks before publishing. Created 7 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: pkg/analyzer_experimental/test/parse_compilation_unit_test.dart
diff --git a/pkg/analyzer_experimental/test/parse_compilation_unit_test.dart b/pkg/analyzer_experimental/test/parse_compilation_unit_test.dart
deleted file mode 100644
index 69389b83ef5674202a65fe4eb6fb7d9c523e5437..0000000000000000000000000000000000000000
--- a/pkg/analyzer_experimental/test/parse_compilation_unit_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2013, 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.
-
-import 'package:analyzer_experimental/analyzer.dart';
-import 'package:unittest/unittest.dart';
-
-void main() {
- test("parses a valid compilation unit successfully", () {
- var unit = parseCompilationUnit("void main() => print('Hello, world!');");
- expect(unit.toString(), equals("void main() => print('Hello, world!');"));
- });
-
- test("throws errors for an invalid compilation unit", () {
- expect(() {
- parseCompilationUnit("void main() => print('Hello, world!')",
- name: 'test.dart');
- }, throwsA(predicate((error) {
- return error is AnalyzerErrorGroup &&
- error.toString().contains("line 1 of test.dart");
- })));
- });
-
- test("defaults to '<unknown source>' if no name is provided", () {
- expect(() {
- parseCompilationUnit("void main() => print('Hello, world!')");
- }, throwsA(predicate((error) {
- return error is AnalyzerErrorGroup &&
- error.toString().contains("line 1 of <unknown source>");
- })));
- });
-}
« no previous file with comments | « pkg/analyzer_experimental/test/options_test.dart ('k') | pkg/analyzer_experimental/test/services/formatter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698