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

Unified Diff: tests/language/config_import_corelib_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/language/config_import_corelib_test.dart
diff --git a/tests/language/config_import_corelib_test.dart b/tests/language/config_import_corelib_test.dart
index 6536426045b3afdac363b0e58c839b460a50ea9c..1428bd5b9a4b0968bb6b4e64783dc28a4e64cfde 100644
--- a/tests/language/config_import_corelib_test.dart
+++ b/tests/language/config_import_corelib_test.dart
@@ -5,9 +5,8 @@
import 'package:expect/expect.dart';
import 'config_import_corelib_general.dart'
- if (dart.library.io) 'config_import_corelib_io.dart'
- if (dart.library.http) 'config_import_corelib_http.dart'
- as lib;
+ if (dart.library.io) 'config_import_corelib_io.dart'
+ if (dart.library.http) 'config_import_corelib_http.dart' as lib;
class SubClassy extends lib.Classy {
String get superName => super.name;
@@ -27,15 +26,23 @@ main() {
Expect.isTrue(lib.ioSpecific());
Expect.equals("classy io", cy.ioSpecific());
- Expect.throws(() { lib.httpSpecific(); });
- Expect.throws(() { cy.httpSpecific(); });
+ Expect.throws(() {
+ lib.httpSpecific();
+ });
+ Expect.throws(() {
+ cy.httpSpecific();
+ });
} else if (http) {
Expect.isTrue(lib.general());
Expect.equals("http", lib.name);
Expect.equals("classy http", cy.name);
- Expect.throws(() { lib.ioSpecific(); });
- Expect.throws(() { cy.ioSpecific(); });
+ Expect.throws(() {
+ lib.ioSpecific();
+ });
+ Expect.throws(() {
+ cy.ioSpecific();
+ });
Expect.isTrue(lib.httpSpecific());
Expect.equals("classy http", cy.httpSpecific());
@@ -44,10 +51,18 @@ main() {
Expect.equals("general", lib.name);
Expect.equals("classy general", cy.name);
- Expect.throws(() { lib.ioSpecific(); });
- Expect.throws(() { cy.ioSpecific(); });
+ Expect.throws(() {
+ lib.ioSpecific();
+ });
+ Expect.throws(() {
+ cy.ioSpecific();
+ });
- Expect.throws(() { lib.httpSpecific(); });
- Expect.throws(() { cy.httpSpecific(); });
+ Expect.throws(() {
+ lib.httpSpecific();
+ });
+ Expect.throws(() {
+ cy.httpSpecific();
+ });
}
}

Powered by Google App Engine
This is Rietveld 408576698