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

Unified Diff: tests/html/instance_of_test.dart

Issue 15773008: Exposing DOM float & double types as double rather than num. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/css_test.dart ('k') | tests/html/url_test.dart » ('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 6e70809e6f051850bfdc88edd1b6cdc10aec9350..43542e859c5606a10c27f40611c1bd5698135ad2 100644
--- a/tests/html/instance_of_test.dart
+++ b/tests/html/instance_of_test.dart
@@ -42,9 +42,8 @@ main() {
expect(context, isNot(isImageData));
// expect(context, isNot(isCanvasPixelArray));
- // FIXME(b/5286633): Interface injection type check workaround.
- var image = context.createImageData(canvas.width as dynamic,
- canvas.height as dynamic);
+ var image = context.createImageData(canvas.width.toDouble(),
+ canvas.height.toDouble());
expect(image, isNot(isCanvasRenderingContext));
expect(image, isNot(isCanvasRenderingContext2D));
expect(image, isNot(isElement));
« no previous file with comments | « tests/html/css_test.dart ('k') | tests/html/url_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698