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

Unified Diff: packages/intl/test/number_closure_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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: packages/intl/test/number_closure_test.dart
diff --git a/packages/intl/test/number_closure_test.dart b/packages/intl/test/number_closure_test.dart
index 8f4410cae522dbb14f7855f7c68fda8fe12d7c8c..af43bdaa54eaac1ec5576b6c709935a85f3e90c1 100644
--- a/packages/intl/test/number_closure_test.dart
+++ b/packages/intl/test/number_closure_test.dart
@@ -1,14 +1,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/**
- * Tests based on the closure number formatting tests.
- */
+/// Tests based on the closure number formatting tests.
library number_closure_test;
import 'dart:async';
import "package:intl/intl.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
main() {
test("testVeryBigNumber", testVeryBigNumber);
@@ -27,10 +25,8 @@ main() {
test("testLocaleSwitchAsync", testLocaleSwitchAsync);
}
-/**
- * Test two large numbers for equality, assuming that there may be some
- * loss of precision in the less significant digits.
- */
+/// Test two large numbers for equality, assuming that there may be some
+/// loss of precision in the less significant digits.
veryBigNumberCompare(str1, str2) {
return str1.length == str2.length &&
str1.substring(0, 8) == str2.substring(0, 8);
@@ -383,9 +379,11 @@ testLocaleSwitch() {
Intl.withLocale("fr", verifyFrenchLocale);
}
+typedef void TimerArgument();
testLocaleSwitchAsync() {
Intl.withLocale("fr", () {
- new Timer(new Duration(milliseconds: 10), expectAsync(verifyFrenchLocale));
+ new Timer(new Duration(milliseconds: 10),
+ expectAsync(verifyFrenchLocale) as TimerArgument);
});
// Verify that things running outside the zone still get en_US.
testStandardFormat();
« no previous file with comments | « packages/intl/test/message_extraction/verify_messages.dart ('k') | packages/intl/test/number_format_compact_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698