Skip to content

Commit 801b7a5

Browse files
committed
add test cases for es2017.string
1 parent 51b66b3 commit 801b7a5

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @target: es5
2+
// @lib: es5,es2017.string
3+
4+
var str = 'foo';
5+
6+
str.padStart(5, '-');
7+
str.padEnd(5, '-');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @target: es5
2+
// @lib: es5
3+
4+
var str = 'foo';
5+
6+
str.padStart(5, '-');
7+
str.padEnd(5, '-');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @target: es6
2+
//
3+
4+
var str = 'foo';
5+
6+
str.padStart(5, '-');
7+
str.padEnd(5, '-');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @target: es6
2+
// @lib: es2017
3+
4+
var str = 'foo';
5+
6+
str.padStart(5, '-');
7+
str.padEnd(5, '-');

0 commit comments

Comments
 (0)