Lines Matching full:trim
24 This test checks String.trim(), String.trimLeft() and String.trimRight() methods.
29 PASS whitespace[0].s.trim() is ''
32 PASS whitespace[1].s.trim() is ''
35 PASS whitespace[2].s.trim() is ''
38 PASS whitespace[3].s.trim() is ''
41 PASS whitespace[4].s.trim() is ''
44 PASS whitespace[5].s.trim() is ''
47 PASS whitespace[6].s.trim() is ''
50 PASS whitespace[7].s.trim() is ''
53 PASS whitespace[8].s.trim() is ''
56 PASS whitespace[9].s.trim() is ''
59 PASS whitespace[10].s.trim() is ''
62 PASS whitespace[11].s.trim() is ''
65 PASS whitespace[12].s.trim() is ''
68 PASS whitespace[13].s.trim() is ''
71 PASS whitespace[14].s.trim() is ''
74 PASS whitespace[15].s.trim() is ''
77 PASS whitespace[16].s.trim() is ''
80 PASS whitespace[17].s.trim() is ''
83 PASS whitespace[18].s.trim() is ''
86 PASS whitespace[19].s.trim() is ''
89 PASS whitespace[20].s.trim() is ''
92 FAIL whitespace[21].s.trim() should be . Was ?.
95 FAIL wsString.trim() should be . Was ?.
104 FAIL trimString.trim() should be foo bar. Was ?foo bar
143 FAIL leftTrimString.trim() should be foo bar. Was foo bar
158 FAIL rightTrimString.trim() should be foo bar. Was ?foo bar.
161 PASS trim.call(0) is '0'
164 PASS trim.call(Infinity) is 'Infinity'
167 PASS trim.call(NaN) is 'NaN'
170 PASS trim.call(true) is 'true'
173 PASS trim.call(false) is 'false'
176 PASS trim.call(({})) is '[object Object]'
179 PASS trim.call(({toString:function(){return 'wibble'}})) is 'wibble'
182 PASS trim.call(['an','array']) is 'an,array'