Home | History | Annotate | Download | only in webkit

Lines Matching full:substr

24 This test checks the boundary cases of substr().
29 PASS 'bar'.substr(0) is 'bar'
30 PASS 'bar'.substr(3) is ''
31 PASS 'bar'.substr(4) is ''
32 PASS 'bar'.substr(-1) is 'r'
33 PASS 'bar'.substr(-3) is 'bar'
34 PASS 'bar'.substr(-4) is 'bar'
35 PASS 'bar'.substr(0, 0) is ''
36 PASS 'bar'.substr(0, 1) is 'b'
37 PASS 'bar'.substr(0, 3) is 'bar'
38 PASS 'bar'.substr(0, 4) is 'bar'
39 PASS 'bar'.substr(1, 0) is ''
40 PASS 'bar'.substr(1, 1) is 'a'
41 PASS 'bar'.substr(1, 2) is 'ar'
42 PASS 'bar'.substr(1, 3) is 'ar'
43 PASS 'bar'.substr(3, 0) is ''
44 PASS 'bar'.substr(3, 1) is ''
45 PASS 'bar'.substr(3, 3) is ''
46 PASS 'bar'.substr(4, 0) is ''
47 PASS 'bar'.substr(4, 1) is ''
48 PASS 'bar'.substr(4, 3) is ''
49 PASS 'bar'.substr(-1, 0) is ''
50 PASS 'bar'.substr(-1, 1) is 'r'
51 PASS 'bar'.substr(-3, 1) is 'b'
52 PASS 'bar'.substr(-3, 3) is 'bar'
53 PASS 'bar'.substr(-3, 4) is 'bar'
54 PASS 'bar'.substr(-4) is 'bar'
55 PASS 'bar'.substr(-4, 0) is ''
56 PASS 'bar'.substr(-4, 1) is 'b'
57 PASS 'bar'.substr(-4, 3) is 'bar'
58 PASS 'bar'.substr(-4, 4) is 'bar'
59 PASS 'GMAIL_IMP=bf-i%2Fd-0-0%2Ftl-v'.substr(10) is 'bf-i%2Fd-0-0%2Ftl-v'