Reviewed by Geoff.
[WebKit-https.git] / LayoutTests / fast / js / regexp-caching-expected.txt
1 This test checks our implementation of the special RegExp member variables.
2
3 Properties of RegExp at startup:
4 $1: {} (read-only)
5 $2: {} (read-only)
6 $3: {} (read-only)
7 $4: {} (read-only)
8 $5: {} (read-only)
9 $6: {} (read-only)
10 $7: {} (read-only)
11 $8: {} (read-only)
12 $9: {} (read-only)
13 input: {} (read-write)
14 lastMatch: {} (read-only)
15 lastParen: {} (read-only)
16 leftContext: {} (read-only)
17 multiline: {false} (read-write)
18 rightContext: {} (read-only)
19
20 Properties of RegExp after /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/.exec(<1234567890>):
21 $1: {1}
22 $2: {2}
23 $3: {3}
24 $4: {4}
25 $5: {5}
26 $6: {6}
27 $7: {7}
28 $8: {8}
29 $9: {9}
30 input: {<1234567890>}
31 lastMatch: {1234567890}
32 lastParen: {0}
33 leftContext: {<}
34 multiline: {false}
35 rightContext: {>}
36
37 RegExp.$0 does not exist
38 RegExp.$10 does not exist
39 RegExp uses RegExp.input
40 RegExp.multiline coerces values to booleans
41 RegExp.input coerces values to strings
42
43 Properties of RegExp after /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/.exec(XXX):
44 $1: {}
45 $2: {}
46 $3: {}
47 $4: {}
48 $5: {}
49 $6: {}
50 $7: {}
51 $8: {}
52 $9: {}
53 input: {0}
54 lastMatch: {}
55 lastParen: {}
56 leftContext: {0}
57 multiline: {true}
58 rightContext: {}
59
60 ---------- [Cleared RegExp values] ----------
61 Properties of RegExp after <1234567890>.search(/(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/):
62 $1: {1}
63 $2: {2}
64 $3: {3}
65 $4: {4}
66 $5: {5}
67 $6: {6}
68 $7: {7}
69 $8: {8}
70 $9: {9}
71 input: {<1234567890>}
72 lastMatch: {1234567890}
73 lastParen: {0}
74 leftContext: {<}
75 multiline: {true}
76 rightContext: {>}
77
78 ---------- [Cleared RegExp values] ----------
79 Properties of RegExp after <1234567890>.replace(/(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/):
80 $1: {1}
81 $2: {2}
82 $3: {3}
83 $4: {4}
84 $5: {5}
85 $6: {6}
86 $7: {7}
87 $8: {8}
88 $9: {9}
89 input: {<1234567890>}
90 lastMatch: {1234567890}
91 lastParen: {0}
92 leftContext: {<}
93 multiline: {true}
94 rightContext: {>}
95