forked from dart-lang/co19
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dart-lang#2119. Run dart formatter on LibTest/async tests
- Loading branch information
Showing
354 changed files
with
2,228 additions
and
2,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
/// @author [email protected] | ||
library EventSink_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -16,4 +17,3 @@ test(EventSink create()) { | |
Expect.isTrue(es is EventSink); | ||
Expect.runtimeIsType<EventSink>(es); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
/// @author [email protected] | ||
library addError_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -21,11 +22,9 @@ test(EventSink create()) { | |
|
||
sc.stream.listen((value) { | ||
Expect.fail("Should not be here: $value"); | ||
}, | ||
onError: (error, StackTrace st) { | ||
}, onError: (error, StackTrace st) { | ||
Expect.equals(values[i++], error); | ||
}, | ||
onDone: () { | ||
}, onDone: () { | ||
asyncEnd(); | ||
}); | ||
|
||
|
@@ -36,4 +35,3 @@ test(EventSink create()) { | |
sc.close(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
/// @author [email protected] | ||
library add_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -21,11 +22,9 @@ test(EventSink create()) { | |
|
||
sc.stream.listen((value) { | ||
Expect.equals(values[i++], value); | ||
}, | ||
onError: (error) { | ||
}, onError: (error) { | ||
Expect.fail("Should not be here: $error"); | ||
}, | ||
onDone: () { | ||
}, onDone: () { | ||
asyncEnd(); | ||
}); | ||
|
||
|
@@ -36,4 +35,3 @@ test(EventSink create()) { | |
sc.close(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
/// @author [email protected] | ||
library all_tests_eventsink; | ||
|
||
import "dart:async"; | ||
|
||
import "../../../Utils/expect.dart"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
/// @author [email protected] | ||
library close_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -22,11 +23,9 @@ test(EventSink create()) { | |
|
||
sc.stream.listen((value) { | ||
Expect.equals(values[i++], value); | ||
}, | ||
onError: (error, StackTrace st) { | ||
}, onError: (error, StackTrace st) { | ||
Expect.equals(values[i++], error); | ||
}, | ||
onDone: () { | ||
}, onDone: () { | ||
asyncEnd(); | ||
}); | ||
|
||
|
@@ -47,4 +46,3 @@ test(EventSink create()) { | |
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
/// @author [email protected] | ||
library equality_operator_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -21,4 +22,3 @@ test(EventSink create()) { | |
Expect.isFalse(es1 == es2); | ||
Expect.isTrue(es1 == es3); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
/// @author [email protected] | ||
library hashCode_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -33,4 +34,3 @@ test(EventSink create()) { | |
Expect.isFalse(es1.hashCode == es3.hashCode); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,25 @@ | |
/// @author [email protected] | ||
library noSuchMethodError_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
test(EventSink create()) { | ||
dynamic es1 = create(); | ||
|
||
try { | ||
es1.listen((_) {}); /// static type warning | ||
es1.listen((_) {}); | ||
|
||
/// static type warning | ||
} catch (e) { | ||
Expect.isTrue(e is NoSuchMethodError); | ||
} | ||
try { | ||
es1.abc((_) {}); /// static type warning | ||
es1.abc((_) {}); | ||
|
||
/// static type warning | ||
} catch (e) { | ||
Expect.isTrue(e is NoSuchMethodError); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
/// @author [email protected] | ||
library runtimeType_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -24,4 +25,3 @@ test(EventSink create()) { | |
Expect.equals(es1.runtimeType, es2.runtimeType); | ||
Expect.notEquals(es1.runtimeType, o.runtimeType); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
/// @author [email protected] | ||
library toString_A01_t01; | ||
|
||
import "dart:async"; | ||
import "../../../Utils/expect.dart"; | ||
|
||
|
@@ -24,4 +25,3 @@ test(EventSink create()) { | |
Expect.notEquals(es1, es2); | ||
Expect.equals(es1.toString(), es2.toString()); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.