Add reference tests for trimLeft and trimRight

This commit is contained in:
Valerie R Young 2017-10-04 17:08:51 -04:00 committed by Rick Waldron
parent 828c8031ef
commit 524f545f3d
2 changed files with 34 additions and 0 deletions

View 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);

View 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);