Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / endsWith / String.prototype.endsWith_Success_3.js
blob9d2a03a6726ebd83eef38bf8c74937329b479370
1 // Copyright (c) 2014 Ryan Lewis. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 author: Ryan Lewis
6 description: >
7     endsWith should return true when called on 'word' and passed 'd'
8     and with an endPosition of 25.
9 features: [String.prototype.endsWith]
10 ---*/
12 assert.sameValue('word'.endsWith('d', 25), true, '"word".endsWith("d", 25)');
14 reportCompare(0, 0);