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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_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/canvas_pixel_array_type_alias_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart b/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart
index 4dd6b407825f0e081bf0bc6b8e83e2283d71291e..9e9111e4f74e83476f14835b4d3ba34e4c310030 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/canvas_pixel_array_type_alias_test.dart
@@ -2,12 +2,11 @@
// 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 CanvasTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_individual_config.dart';
import 'dart:html';
import 'dart:typed_data';
+import 'package:minitest/minitest.dart';
+
// We have aliased the legacy type CanvasPixelArray with the new type
// Uint8ClampedArray by mapping the CanvasPixelArray type tag to
// Uint8ClampedArray. It is not a perfect match since CanvasPixelArray is
@@ -16,9 +15,6 @@ import 'dart:typed_data';
var inscrutable;
main() {
-
- useHtmlIndividualConfiguration();
-
inscrutable = (x) => x;
int width = 100;
@@ -39,7 +35,7 @@ main() {
expect(inscrutable(data) is List<int>, isTrue,
reason: 'canvas array type');
- expect(data, hasLength(40000));
+ expect(data.length, 40000);
checkPixel(data, 0, [0, 0, 0, 0]);
checkPixel(data, width * height - 1, [0, 0, 0, 0]);
« no previous file with comments | « pkg/dev_compiler/test/codegen/lib/html/callbacks_test.dart ('k') | pkg/dev_compiler/test/codegen/lib/html/cdata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698