summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js')
-rw-r--r--js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js b/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js
new file mode 100644
index 0000000000..e8415f3e1e
--- /dev/null
+++ b/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js
@@ -0,0 +1,14 @@
+// Copyright (c) 2014 Ryan Lewis. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+author: Ryan Lewis
+description: >
+ String should return false if a letter is not found in the word
+ starting from the passed location.
+features: [String.prototype.includes]
+---*/
+
+assert.sameValue('word'.includes('o', 3), false, '"word".includes("o", 3)');
+
+reportCompare(0, 0);