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

Unified Diff: tests/html/instance_of_test.dart

Issue 12036013: Initial work on ImageData.data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « tests/html/canvasrenderingcontext2d_test.dart ('k') | tools/dom/idl/dart/dart.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/instance_of_test.dart
diff --git a/tests/html/instance_of_test.dart b/tests/html/instance_of_test.dart
index dd4355b85d83c621a541f42bbdb05ef40c0989e2..30572c8d7ee89e25c9095461043e8cecd915efb3 100644
--- a/tests/html/instance_of_test.dart
+++ b/tests/html/instance_of_test.dart
@@ -20,10 +20,10 @@ main() {
var isCanvasElement =
predicate((x) => x is CanvasElement, 'is a CanvasElement');
var isImageData = predicate((x) => x is ImageData, 'is an ImageData');
- //var isCanvasPixelArray =
- // predicate((x) => x is CanvasPixelArray, 'is a CanvasPixelArray');
- var isUint8ClampedArray =
- predicate((x) => x is Uint8ClampedArray, 'is a Uint8ClampedArray');
+ //var isUint8ClampedArray =
+ // predicate((x) => x is Uint8ClampedArray, 'is a Uint8ClampedArray');
+ var isIntList =
+ predicate((x) => x is List<int>, 'is a List<int>');
useHtmlConfiguration();
test('Instanceof', () {
@@ -60,7 +60,7 @@ main() {
expect(bytes, isNot(isElement));
expect(bytes, isNot(isCanvasElement));
expect(bytes, isNot(isImageData));
- expect(bytes, isUint8ClampedArray);
+ expect(bytes, isIntList);
// FIXME: Ensure this is an SpanElement when we next update
// WebKit IDL.
« no previous file with comments | « tests/html/canvasrenderingcontext2d_test.dart ('k') | tools/dom/idl/dart/dart.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698