summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/regexp_parse/CharacterClass_ControlEscape.js
blob: bf019442335467fe87f7c526a32f11234656fb33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if (typeof parseRegExp === 'undefined')
    quit();

load(libdir + "regexp_parse.js");

test("[\\f]", all_flags,
     CharacterClass([
         ["\u000c", "\u000c"]
     ]));

test("[\\n]", all_flags,
     CharacterClass([
         ["\u000a", "\u000a"]
     ]));

test("[\\r]", all_flags,
     CharacterClass([
         ["\u000d", "\u000d"]
     ]));

test("[\\t]", all_flags,
     CharacterClass([
         ["\u0009", "\u0009"]
     ]));

test("[\\v]", all_flags,
     CharacterClass([
         ["\u000b", "\u000b"]
     ]));