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

Unified Diff: pkg/analyzer/test/src/plugin/plugin_config_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 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/test/src/plugin/plugin_config_test.dart
diff --git a/pkg/analyzer/test/src/plugin/plugin_config_test.dart b/pkg/analyzer/test/src/plugin/plugin_config_test.dart
index 2c9fa0481ed295bcbd5ec09240245eecd2aa62a5..84ec8c8e08fc41a869225b5c08b9e345c0e65c91 100644
--- a/pkg/analyzer/test/src/plugin/plugin_config_test.dart
+++ b/pkg/analyzer/test/src/plugin/plugin_config_test.dart
@@ -6,7 +6,7 @@ library analyzer.test.src.plugin.plugin_config_test;
import 'package:analyzer/source/analysis_options_provider.dart';
import 'package:analyzer/src/plugin/plugin_configuration.dart';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
import 'package:yaml/yaml.dart';
main() {
@@ -16,7 +16,7 @@ main() {
const optionsSrc = '''
analyzer:
plugins:
- my_plugin1: ^0.1.0 #shorthand
+ my_plugin1: ^0.1.0 #shorthand
my_plugin2:
version: ^0.2.0
my_plugin3:
@@ -42,7 +42,7 @@ analyzer:
const optionsSrc = '''
analyzer:
plugins:
- # my_plugin1: ^0.1.0 #shorthand
+ # my_plugin1: ^0.1.0 #shorthand
''';
var config = parseConfig(optionsSrc);
// Commented out plugins shouldn't cause a parse failure.
@@ -53,7 +53,7 @@ analyzer:
const manifestSrc = '''
class_name: AnalyzerPlugin
library_uri: myplugin/analyzer_plugin.dart
-contributes_to: analyzer
+contributes_to: analyzer
''';
var manifest = parsePluginManifestString(manifestSrc);
var plugin = manifest.plugin;
@@ -66,9 +66,9 @@ contributes_to: analyzer
const manifestSrc = '''
class_name: AnalyzerPlugin
library_uri: myplugin/analyzer_plugin.dart
-contributes_to:
+contributes_to:
- analyzer
- - analysis_server
+ - analysis_server
''';
var manifest = parsePluginManifestString(manifestSrc);
var plugin = manifest.plugin;

Powered by Google App Engine
This is Rietveld 408576698