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

Unified Diff: pkg/analyzer2dart/test/end2end_test.dart

Issue 2037123002: Cleanup: remove package "analyzer2dart". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « pkg/analyzer2dart/test/end2end_data.dart ('k') | pkg/analyzer2dart/test/identifier_semantics_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/test/end2end_test.dart
diff --git a/pkg/analyzer2dart/test/end2end_test.dart b/pkg/analyzer2dart/test/end2end_test.dart
deleted file mode 100644
index 18fe84a5e248f9f637f4f6c759b2e357c4146b89..0000000000000000000000000000000000000000
--- a/pkg/analyzer2dart/test/end2end_test.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2014, 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.
-
-/// End-to-end test of the analyzer2dart compiler.
-library test.end2end;
-
-import 'mock_sdk.dart';
-import 'package:analyzer/file_system/memory_file_system.dart';
-import 'package:analyzer/src/generated/element.dart';
-import 'package:analyzer/src/generated/sdk.dart';
-import 'package:analyzer/src/generated/source.dart';
-import 'package:unittest/unittest.dart';
-
-import '../lib/src/closed_world.dart';
-import '../lib/src/driver.dart';
-import '../lib/src/converted_world.dart';
-import '../lib/src/dart_backend.dart';
-
-import 'test_helper.dart' hide TestSpec;
-import 'output_helper.dart';
-import 'end2end_data.dart';
-
-main(List<String> args) {
- performTests(TEST_DATA, unittester, checkResult, args);
-}
-
-checkResult(TestSpec result) {
- String input = result.input;
- String expectedOutput = result.output.trim();
-
- CollectingOutputProvider outputProvider = new CollectingOutputProvider();
- MemoryResourceProvider provider = new MemoryResourceProvider();
- DartSdk sdk = new MockSdk();
- Driver driver = new Driver(provider, sdk, outputProvider);
- String rootFile = '/root.dart';
- provider.newFile(rootFile, input);
- Source rootSource = driver.setRoot(rootFile);
- FunctionElement entryPoint = driver.resolveEntryPoint(rootSource);
- ClosedWorld world = driver.computeWorld(entryPoint);
- ConvertedWorld convertedWorld = convertWorld(world);
- compileToDart(driver, convertedWorld);
- String output = outputProvider.output.text.trim();
- expect(output, equals(expectedOutput));
-}
« no previous file with comments | « pkg/analyzer2dart/test/end2end_data.dart ('k') | pkg/analyzer2dart/test/identifier_semantics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698