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>[]; |