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

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

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. 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/blob_constructor_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/blob_constructor_test.dart b/pkg/dev_compiler/test/codegen/lib/html/blob_constructor_test.dart
index 41461f5637861ec2b2dba74d14b081840ace9608..e594e98b5660672bbc7d4735bc975a311e6cfa65 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/blob_constructor_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/blob_constructor_test.dart
@@ -2,18 +2,15 @@
// 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 blob_test;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
import 'dart:typed_data';
-main() {
- useHtmlConfiguration();
+import 'package:minitest/minitest.dart';
+main() {
test('basic', () {
var b = new Blob([]);
- expect(b.size, isZero);
+ expect(b.size, 0);
});
test('type1', () {
@@ -32,7 +29,7 @@ main() {
test('endings2', () {
// OPTIONALS var b = new Blob(['A\nB\n'], endings: 'native');
var b = new Blob(['A\nB\n'], null, 'native');
- expect(b.size, (x) => x == 4 || x == 6,
+ expect(b.size, predicate((x) => x == 4 || x == 6),
reason: "b.size should be 4 or 6");
});
@@ -45,7 +42,7 @@ main() {
test('fromBlob1', () {
var b1 = new Blob([]);
var b2 = new Blob([b1]);
- expect(b2.size, isZero);
+ expect(b2.size, 0);
});
test('fromBlob2', () {
« no previous file with comments | « pkg/dev_compiler/test/codegen/lib/html/b_element_test.dart ('k') | pkg/dev_compiler/test/codegen/lib/html/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698