From 524f545f3df0b85e8025e87b508e72f12eeb6a52 Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Wed, 4 Oct 2017 17:08:51 -0400 Subject: [PATCH] Add reference tests for trimLeft and trimRight --- .../prototype/trimLeft/reference-trimStart.js | 17 +++++++++++++++++ .../prototype/trimRight/reference-trimEnd.js | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 test/annexB/built-ins/String/prototype/trimLeft/reference-trimStart.js create mode 100644 test/annexB/built-ins/String/prototype/trimRight/reference-trimEnd.js diff --git a/test/annexB/built-ins/String/prototype/trimLeft/reference-trimStart.js b/test/annexB/built-ins/String/prototype/trimLeft/reference-trimStart.js new file mode 100644 index 0000000000..bc72d693a5 --- /dev/null +++ b/test/annexB/built-ins/String/prototype/trimLeft/reference-trimStart.js @@ -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); diff --git a/test/annexB/built-ins/String/prototype/trimRight/reference-trimEnd.js b/test/annexB/built-ins/String/prototype/trimRight/reference-trimEnd.js new file mode 100644 index 0000000000..515e8f60d4 --- /dev/null +++ b/test/annexB/built-ins/String/prototype/trimRight/reference-trimEnd.js @@ -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);