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

Unified Diff: tests/html/url_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/instance_of_test.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/url_test.dart
diff --git a/tests/html/url_test.dart b/tests/html/url_test.dart
index 2b3260bdb3b9ae40a5bab87a41fa7fd296c06622..538465a07c79e9bc88aaef6bdbf585a17b9153e8 100644
--- a/tests/html/url_test.dart
+++ b/tests/html/url_test.dart
@@ -18,7 +18,8 @@ main() {
var context = canvas.context2D;
context.fillStyle = 'red';
- context.fillRect(0, 0, canvas.width, canvas.height);
+ context.fillRect(0.0, 0.0,
+ canvas.width.toDouble(), canvas.height.toDouble());
var dataUri = canvas.toDataUrl('image/png');
var byteString = window.atob(dataUri.split(',')[1]);
« no previous file with comments | « tests/html/instance_of_test.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698