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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/typed_arrays_1_test.dart

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. Created 4 years, 2 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/dev_compiler/test/codegen/lib/html/typed_arrays_1_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/typed_arrays_1_test.dart b/pkg/dev_compiler/test/codegen/lib/html/typed_arrays_1_test.dart
index c3eb811a35c81a61af4157c1485d41f804436849..3bbd336d20b0c93ab659e76c4153d3e8ec596ecc 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/typed_arrays_1_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/typed_arrays_1_test.dart
@@ -2,17 +2,16 @@
// 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.
-library TypedArrays1Test;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_individual_config.dart';
import 'dart:html';
import 'dart:typed_data';
-main() {
- useHtmlIndividualConfiguration();
+import 'package:expect/minitest.dart';
- var isnumList = predicate((x) => x is List<num>, 'is a List<num>');
- var isStringList = predicate((x) => x is List<String>, 'is a List<String>');
+main() {
+ var isList = predicate((x) => x is List, 'is a List');
+ var isNumList = predicate((x) => x is List<num>, 'is a List<num>');
+ var isNotStringList =
+ predicate((x) => x is! List<String>, 'is not a List<String>');
var expectation = Platform.supportsTypedData ? returnsNormally : throws;
group('supported', () {
@@ -63,8 +62,8 @@ main() {
expect(() {
var a = new Float32List(10);
expect(a, isList);
- expect(a, isnumList);
- expect(a, isNot(isStringList));
+ expect(a, isNumList);
+ expect(a, isNotStringList);
}, expectation);
});
}

Powered by Google App Engine
This is Rietveld 408576698