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

Unified Diff: tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart

Issue 9017015: Dartc was not raising an error if an interface declared constructors without a default clause (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moved check. Created 9 years 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 | « tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
diff --git a/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart b/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
index 667281fe23b68a745f3676a948ff48c0abc95b0c..3644cafc5300b2d682dd7e67c597b891e5a0678d 100644
--- a/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
+++ b/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
@@ -225,19 +225,19 @@ class MintMakerPromiseWithStubsTest {
Promise<bool> p4 = new Promise<bool>();
Promise<bool> p5 = new Promise<bool>();
Promise<bool> p6 = new Promise<bool>();
- result.addCompleteHandler((_) {
+ result.addCompleteHandler((unused) {
expect.completesWithValue(sprouted.queryBalance(), 0 + 5)
- .then((_) => p2.complete(true));
+ .then((unused_) => p2.complete(true));
expect.completesWithValue(purse.queryBalance(), 100 - 5)
- .then((_) => p3.complete(true));
+ .then((unused_) => p3.complete(true));
result = sprouted.deposit(42, purse);
- expect.completesWithValue(result, 5 + 42).then((_) => p4.complete(true));
- result.addCompleteHandler((_) {
+ expect.completesWithValue(result, 5 + 42).then((unused__) => p4.complete(true));
+ result.addCompleteHandler((unused_) {
expect.completesWithValue(sprouted.queryBalance(), 0 + 5 + 42)
- .then((_) => p5.complete(true));
+ .then((unused___) => p5.complete(true));
expect.completesWithValue(purse.queryBalance(), 100 - 5 - 42)
- .then((_) => p6.complete(true));
+ .then((unused___) => p6.complete(true));
});
});
Promise<bool> done = new Promise<bool>();
« no previous file with comments | « tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698