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

Unified Diff: test/integration_test.dart

Issue 2100013005: Linter `0.1.21` (Closed) Base URL: https://github.com/dart-lang/linter.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 | « test/_data/only_throw_errors/only_throw_errors.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/integration_test.dart
diff --git a/test/integration_test.dart b/test/integration_test.dart
index e041c926922e3234e1a71af18b025142f727ecfb..24cb8e51f5fb07628c27246596e4f57a7f30d852 100644
--- a/test/integration_test.dart
+++ b/test/integration_test.dart
@@ -192,19 +192,15 @@ defineTests() {
});
test('close sinks', () {
- dartlint.main([
- 'test/_data/close_sinks',
- '--rules=close_sinks'
- ]);
+ dartlint.main(['test/_data/close_sinks', '--rules=close_sinks']);
expect(exitCode, 1);
expect(
collectingOut.trim(),
- stringContainsInOrder(
- [
- 'IOSink _sinkA; // LINT',
- 'IOSink _sinkF; // LINT',
- '1 file analyzed, 2 issues found, in'
- ]));
+ stringContainsInOrder([
+ 'IOSink _sinkA; // LINT',
+ 'IOSink _sinkF; // LINT',
+ '1 file analyzed, 2 issues found, in'
+ ]));
});
});
@@ -229,16 +225,15 @@ defineTests() {
expect(exitCode, 1);
expect(
collectingOut.trim(),
- stringContainsInOrder(
- [
- 'StreamSubscription _subscriptionA; // LINT',
- 'StreamSubscription _subscriptionF; // LINT',
- '1 file analyzed, 2 issues found, in'
- ]));
+ stringContainsInOrder([
+ 'StreamSubscription _subscriptionA; // LINT',
+ 'StreamSubscription _subscriptionF; // LINT',
+ '1 file analyzed, 2 issues found, in'
+ ]));
});
});
- group('only_throw_error', () {
+ group('only_throw_errors', () {
IOSink currentOut = outSink;
CollectingSink collectingOut = new CollectingSink();
setUp(() {
@@ -251,23 +246,20 @@ defineTests() {
exitCode = 0;
});
- test('only throw error', () {
- dartlint.main([
- 'test/_data/only_throw_error',
- '--rules=only_throw_error'
- ]);
+ test('only throw errors', () {
+ dartlint.main(
+ ['test/_data/only_throw_errors', '--rules=only_throw_errors']);
expect(exitCode, 1);
expect(
collectingOut.trim(),
- stringContainsInOrder(
- [
- "throw 'hello world!'; // LINT",
- 'throw null; // LINT',
- 'throw 7; // LINT',
- 'throw new Object(); // LINT',
- 'throw returnString(); // LINT',
- '1 file analyzed, 5 issues found, in'
- ]));
+ stringContainsInOrder([
+ "throw 'hello world!'; // LINT",
+ 'throw null; // LINT',
+ 'throw 7; // LINT',
+ 'throw new Object(); // LINT',
+ 'throw returnString(); // LINT',
+ '1 file analyzed, 5 issues found, in'
+ ]));
});
});
« no previous file with comments | « test/_data/only_throw_errors/only_throw_errors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698