summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-omitted.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-omitted.js')
-rw-r--r--js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-omitted.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-omitted.js b/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-omitted.js
new file mode 100644
index 0000000000..f0a6c475dc
--- /dev/null
+++ b/js/src/tests/test262/built-ins/String/prototype/padEnd/fill-string-omitted.js
@@ -0,0 +1,13 @@
+// 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 default to a fillString of " " when omitted
+author: Jordan Harband
+---*/
+
+assert.sameValue('abc'.padEnd(5), 'abc ');
+assert.sameValue('abc'.padEnd(5, undefined), 'abc ');
+
+reportCompare(0, 0);