diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-empty.js')
-rw-r--r-- | js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-empty.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-empty.js b/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-empty.js new file mode 100644 index 0000000000..e22ee5a185 --- /dev/null +++ b/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-empty.js @@ -0,0 +1,14 @@ +// Copyright (C) 2016 Jordan Harband. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-string.prototype.padend +description: > + String#padEnd should return the string unchanged when + an explicit empty string is provided +author: Jordan Harband +---*/ + +assert.sameValue('abc'.padEnd(5, ''), 'abc'); + +reportCompare(0, 0); |