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

Unified Diff: samples/third_party/dromaeo/tests/dom-modify-html.dart

Issue 11748016: Make ~/, round, ceil, floor, truncate return ints. Remove toInt. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Checked mode fixes. Created 7 years, 12 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: samples/third_party/dromaeo/tests/dom-modify-html.dart
diff --git a/samples/third_party/dromaeo/tests/dom-modify-html.dart b/samples/third_party/dromaeo/tests/dom-modify-html.dart
index b2a0fbd6a72ff2a9d4e4fc7f5d67d8ea6310f2a8..17247796f69a5fcea497106341162fbadc428680 100644
--- a/samples/third_party/dromaeo/tests/dom-modify-html.dart
+++ b/samples/third_party/dromaeo/tests/dom-modify-html.dart
@@ -12,7 +12,7 @@ void main() {
String str = 'null';
// Very ugly way to build up the string, but let's mimic JS version as much as possible.
for (int i = 0; i < 1024; i++) {
- str = "$str${new String.fromCharCodes([((25 * random.nextDouble()) + 97).toInt()])}";
+ str = "$str${new String.fromCharCodes([((25 * random.nextDouble()) + 97).truncate()])}";
Lasse Reichstein Nielsen 2013/01/04 10:29:42 Line length. You can insert line-breaks inside int
}
List<Node> elems = <Node>[];

Powered by Google App Engine
This is Rietveld 408576698