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

Unified Diff: packages/intl/test/date_time_format_test_stub.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/date_time_format_test_stub.dart
diff --git a/packages/intl/test/date_time_format_test_stub.dart b/packages/intl/test/date_time_format_test_stub.dart
index e8141f65edf7c1d77cb93655139a9b0eec8933b1..b6c3f9da2bfd05df35736456c797b4fdd2e13891 100644
--- a/packages/intl/test/date_time_format_test_stub.dart
+++ b/packages/intl/test/date_time_format_test_stub.dart
@@ -2,15 +2,13 @@
// 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.
-/**
- * Test date formatting and parsing using locale data which is available
- * directly in the program as a constant.
- */
+/// Test date formatting and parsing using locale data which is available
+/// directly in the program as a constant.
library date_time_format_test;
import 'dart:async';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
import 'package:intl/intl.dart';
import 'date_time_format_test_core.dart';
@@ -18,26 +16,20 @@ typedef List<String> TestListFunc();
typedef Future InitializeDateFormattingFunc(String locale, String filePath);
-/**
- * Return only the odd-numbered locales. A simple way to divide the list into
- * two roughly equal parts.
- */
+/// Return only the odd-numbered locales. A simple way to divide the list into
+/// two roughly equal parts.
List<String> oddLocales() {
int i = 1;
return allLocales().where((x) => (i++).isOdd).toList();
}
-/**
- * Return a set of a few locales to run just the tests on a small sample.
- */
-List smallSetOfLocales() {
+/// Return a set of a few locales to run just the tests on a small sample.
+List<String> smallSetOfLocales() {
return allLocales().sublist(0, 10);
}
-/**
- * Return only the even-numbered locales. A simple way to divide the list into
- * two roughly equal parts.
- */
+/// Return only the even-numbered locales. A simple way to divide the list into
+/// two roughly equal parts.
List<String> evenLocales() {
int i = 1;
return allLocales().where((x) => !((i++).isOdd)).toList();
« no previous file with comments | « packages/intl/test/date_time_format_test_data.dart ('k') | packages/intl/test/date_time_format_uninitialized_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698