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

Unified Diff: pkg/intl/test/find_default_locale_browser_test.dart

Issue 11028010: Make sure to wrap all callbacks with expectAsync in tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/intl/test/find_default_locale_browser_test.dart
===================================================================
--- pkg/intl/test/find_default_locale_browser_test.dart (revision 13089)
+++ pkg/intl/test/find_default_locale_browser_test.dart (working copy)
@@ -14,8 +14,8 @@
// should find a way to force the system locale before the test is run
// and then verify that it's actually the correct value.
Intl.systemLocale = 'xx_YY';
- findSystemLocale();
- expect(Intl.systemLocale, isNot(equals("xx_YY")));
+ var callback = expectAsync1(verifyLocale);
+ findSystemLocale().then(callback);
});
}

Powered by Google App Engine
This is Rietveld 408576698