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

Unified Diff: samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.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-htmlidiomatic.dart
diff --git a/samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.dart b/samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.dart
index 9da20970d291609496fb9dd8bb916c74e105b4ca..17dc504a8ae7a01be10364427c4590497659961b 100644
--- a/samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.dart
+++ b/samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.dart
@@ -11,7 +11,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 * Math.random()) + 97).toInt()])}";
+ str = "$str${new String.fromCharCodes([((25 * Math.random()) + 97).truncate()])}";
Lasse Reichstein Nielsen 2013/01/04 10:29:42 Line length.
}
List<Node> elems = <Node>[];

Powered by Google App Engine
This is Rietveld 408576698