Index: test/mjsunit/harmony/harmony-string-pad-end.js |
diff --git a/test/mjsunit/harmony/harmony-string-pad-end.js b/test/mjsunit/harmony/harmony-string-pad-end.js |
index 3292e94eeec92945983d16259ece19c77e4a22b7..03e5aeacdb491453f40ca2b1534f3dcc457f9e95 100644 |
--- a/test/mjsunit/harmony/harmony-string-pad-end.js |
+++ b/test/mjsunit/harmony/harmony-string-pad-end.js |
@@ -67,8 +67,19 @@ |
(function TestFillerToString() { |
assertEquals(". ", ".".padEnd(10)); |
assertEquals(". ", ".".padEnd(10, undefined)); |
- assertEquals(". ", ".".padEnd(10, { toString() { return ""; } })); |
assertEquals(".nullnulln", ".".padEnd(10, null)); |
+ assertEquals(".XXXXXXXXX", ".".padEnd(10, { toString() { return "X"; } })); |
+ assertEquals( |
+ ".111111111", |
+ ".".padEnd(10, { toString: undefined, valueOf() { return 1; } })); |
+})(); |
+ |
+ |
+(function TestFillerEmptyString() { |
+ assertEquals(".", ".".padEnd(10, "")); |
+ assertEquals(".", ".".padEnd(10, { toString() { return ""; } })); |
+ assertEquals( |
+ ".", ".".padEnd(10, { toString: undefined, valueOf() { return ""; } })); |
})(); |