mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add reference tests for trimLeft and trimRight
This commit is contained in:
parent
828c8031ef
commit
524f545f3d
17
test/annexB/built-ins/String/prototype/trimLeft/reference-trimStart.js
vendored
Normal file
17
test/annexB/built-ins/String/prototype/trimLeft/reference-trimStart.js
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-string.prototype.trimLeft
|
||||
description: >
|
||||
String.prototype.trimLeft is a reference to String.prototype.trimStart.
|
||||
info: >
|
||||
String.prototype.trimLeft ( )
|
||||
|
||||
The function object that is the initial value of String.prototype.trimLeft
|
||||
is the same function object that is the initial value of
|
||||
String.prototype.trimStart.
|
||||
features: [string-trimming]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.trimLeft, String.prototype.trimStart);
|
17
test/annexB/built-ins/String/prototype/trimRight/reference-trimEnd.js
vendored
Normal file
17
test/annexB/built-ins/String/prototype/trimRight/reference-trimEnd.js
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-string.prototype.trimRight
|
||||
description: >
|
||||
String.prototype.trimRight is a reference to String.prototype.trimEnd.
|
||||
info: >
|
||||
String.prototype.trimRight ( )
|
||||
|
||||
The function object that is the initial value of String.prototype.trimRight
|
||||
is the same function object that is the initial value of
|
||||
String.prototype.trimEnd.
|
||||
features: [string-trimming]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.trimRight, String.prototype.trimEnd);
|
Loading…
x
Reference in New Issue
Block a user