diff options
Diffstat (limited to 'js/src/jit-test/tests/regexp_parse/Assertion.js')
-rw-r--r-- | js/src/jit-test/tests/regexp_parse/Assertion.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/regexp_parse/Assertion.js b/js/src/jit-test/tests/regexp_parse/Assertion.js new file mode 100644 index 000000000..774f43471 --- /dev/null +++ b/js/src/jit-test/tests/regexp_parse/Assertion.js @@ -0,0 +1,20 @@ +if (typeof parseRegExp === 'undefined') + quit(); + +load(libdir + "regexp_parse.js"); + +test_mix("^", no_multiline_flags, + Assertion("START_OF_INPUT")); +test_mix("^", multiline_flags, + Assertion("START_OF_LINE")); + +test_mix("$", no_multiline_flags, + Assertion("END_OF_INPUT")); +test_mix("$", multiline_flags, + Assertion("END_OF_LINE")); + +test_mix("\\b", all_flags, + Assertion("BOUNDARY")); + +test_mix("\\B", all_flags, + Assertion("NON_BOUNDARY")); |