diff --git a/tests/cases/conformance/es2017/useStringPadding1.ts b/tests/cases/conformance/es2017/useStringPadding1.ts new file mode 100644 index 0000000000000..42a04fc4e62bf --- /dev/null +++ b/tests/cases/conformance/es2017/useStringPadding1.ts @@ -0,0 +1,7 @@ +// @target: es5 +// @lib: es5,es2017.string + +var str = 'foo'; + +str.padStart(5, '-'); +str.padEnd(5, '-'); diff --git a/tests/cases/conformance/es2017/useStringPadding2.ts b/tests/cases/conformance/es2017/useStringPadding2.ts new file mode 100644 index 0000000000000..98a3c0b90b3c0 --- /dev/null +++ b/tests/cases/conformance/es2017/useStringPadding2.ts @@ -0,0 +1,7 @@ +// @target: es5 +// @lib: es5 + +var str = 'foo'; + +str.padStart(5, '-'); +str.padEnd(5, '-'); diff --git a/tests/cases/conformance/es2017/useStringPadding3.ts b/tests/cases/conformance/es2017/useStringPadding3.ts new file mode 100644 index 0000000000000..d5a1a3982ba53 --- /dev/null +++ b/tests/cases/conformance/es2017/useStringPadding3.ts @@ -0,0 +1,7 @@ +// @target: es6 +// + +var str = 'foo'; + +str.padStart(5, '-'); +str.padEnd(5, '-'); diff --git a/tests/cases/conformance/es2017/useStringPadding4.ts b/tests/cases/conformance/es2017/useStringPadding4.ts new file mode 100644 index 0000000000000..d55cdac11ac5e --- /dev/null +++ b/tests/cases/conformance/es2017/useStringPadding4.ts @@ -0,0 +1,7 @@ +// @target: es6 +// @lib: es2017 + +var str = 'foo'; + +str.padStart(5, '-'); +str.padEnd(5, '-');