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

Unified Diff: tests/corelib/core_runtime_types_test.dart

Issue 171773003: Allow multi-codeunit padding in String.padLeft/padRight. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Type typo. Created 6 years, 10 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: tests/corelib/core_runtime_types_test.dart
diff --git a/tests/corelib/core_runtime_types_test.dart b/tests/corelib/core_runtime_types_test.dart
index ee91954579c45a707b24a5b377b9d677e59a5842..017df05110dcda9b37d48fc9e53a3a4eacd9d02e 100644
--- a/tests/corelib/core_runtime_types_test.dart
+++ b/tests/corelib/core_runtime_types_test.dart
@@ -83,9 +83,10 @@ class CoreRuntimeTypesTest {
static testOperatorErrors() {
var objs = [1, '2', [3], null, true, new Map()];
for (var i=0; i < objs.length; i++) {
- for (var j=i+1; j < objs.length; j++) {
+ for (var j= i + 1; j < objs.length; j++) {
testBinaryOperatorErrors(objs[i], objs[j]);
- testBinaryOperatorErrors(objs[j], objs[i]);
+ // Allow "String * int".
+ if (j > 2) testBinaryOperatorErrors(objs[j], objs[i]);
}
if (objs[i] != 1) {
testUnaryOperatorErrors(objs[i]);

Powered by Google App Engine
This is Rietveld 408576698