OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions | 5 # modification, are permitted provided that the following conditions |
6 # are met: | 6 # are met: |
7 # 1. Redistributions of source code must retain the above copyright | 7 # 1. Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # 2. Redistributions in binary form must reproduce the above copyright | 9 # 2. Redistributions in binary form must reproduce the above copyright |
10 # notice, this list of conditions and the following disclaimer in the | 10 # notice, this list of conditions and the following disclaimer in the |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 PASS whitespace[17].s.trimRight() is '' | 82 PASS whitespace[17].s.trimRight() is '' |
83 PASS whitespace[18].s.trim() is '' | 83 PASS whitespace[18].s.trim() is '' |
84 PASS whitespace[18].s.trimLeft() is '' | 84 PASS whitespace[18].s.trimLeft() is '' |
85 PASS whitespace[18].s.trimRight() is '' | 85 PASS whitespace[18].s.trimRight() is '' |
86 PASS whitespace[19].s.trim() is '' | 86 PASS whitespace[19].s.trim() is '' |
87 PASS whitespace[19].s.trimLeft() is '' | 87 PASS whitespace[19].s.trimLeft() is '' |
88 PASS whitespace[19].s.trimRight() is '' | 88 PASS whitespace[19].s.trimRight() is '' |
89 PASS whitespace[20].s.trim() is '' | 89 PASS whitespace[20].s.trim() is '' |
90 PASS whitespace[20].s.trimLeft() is '' | 90 PASS whitespace[20].s.trimLeft() is '' |
91 PASS whitespace[20].s.trimRight() is '' | 91 PASS whitespace[20].s.trimRight() is '' |
92 PASS whitespace[21].s.trim() is '' | 92 FAIL whitespace[21].s.trim() should be . Was . |
93 PASS whitespace[21].s.trimLeft() is '' | 93 FAIL whitespace[21].s.trimLeft() should be . Was . |
94 PASS whitespace[21].s.trimRight() is '' | 94 FAIL whitespace[21].s.trimRight() should be . Was . |
95 PASS wsString.trim() is '' | 95 FAIL wsString.trim() should be . Was . |
96 PASS wsString.trimLeft() is '' | 96 FAIL wsString.trimLeft() should be . Was . |
97 PASS wsString.trimRight() is '' | 97 FAIL wsString.trimRight() should be . Was |
98 PASS trimString.trim() is testString | 98 |
99 PASS trimString.trimLeft() is leftTrimString | 99
. |
100 PASS trimString.trimRight() is rightTrimString | 100 FAIL trimString.trim() should be foo bar. Was foo bar |
101 PASS leftTrimString.trim() is testString | 101 |
| 102
. |
| 103 FAIL trimString.trimLeft() should be foo bar |
| 104 |
| 105
. Was foo bar |
| 106 |
| 107
. |
| 108 FAIL trimString.trimRight() should be |
| 109 |
| 110
foo bar. Was |
| 111 |
| 112
foo bar |
| 113 |
| 114
. |
| 115 FAIL leftTrimString.trim() should be foo bar. Was foo bar |
| 116 |
| 117
. |
102 PASS leftTrimString.trimLeft() is leftTrimString | 118 PASS leftTrimString.trimLeft() is leftTrimString |
103 PASS leftTrimString.trimRight() is testString | 119 FAIL leftTrimString.trimRight() should be foo bar. Was foo bar |
104 PASS rightTrimString.trim() is testString | 120 |
105 PASS rightTrimString.trimLeft() is testString | 121
. |
| 122 FAIL rightTrimString.trim() should be foo bar. Was foo bar. |
| 123 FAIL rightTrimString.trimLeft() should be foo bar. Was foo bar. |
106 PASS rightTrimString.trimRight() is rightTrimString | 124 PASS rightTrimString.trimRight() is rightTrimString |
107 PASS trim.call(0) is '0' | 125 PASS trim.call(0) is '0' |
108 PASS trimLeft.call(0) is '0' | 126 PASS trimLeft.call(0) is '0' |
109 PASS trimRight.call(0) is '0' | 127 PASS trimRight.call(0) is '0' |
110 PASS trim.call(Infinity) is 'Infinity' | 128 PASS trim.call(Infinity) is 'Infinity' |
111 PASS trimLeft.call(Infinity) is 'Infinity' | 129 PASS trimLeft.call(Infinity) is 'Infinity' |
112 PASS trimRight.call(Infinity) is 'Infinity' | 130 PASS trimRight.call(Infinity) is 'Infinity' |
113 PASS trim.call(NaN) is 'NaN' | 131 PASS trim.call(NaN) is 'NaN' |
114 PASS trimLeft.call(NaN) is 'NaN' | 132 PASS trimLeft.call(NaN) is 'NaN' |
115 PASS trimRight.call(NaN) is 'NaN' | 133 PASS trimRight.call(NaN) is 'NaN' |
116 PASS trim.call(true) is 'true' | 134 PASS trim.call(true) is 'true' |
117 PASS trimLeft.call(true) is 'true' | 135 PASS trimLeft.call(true) is 'true' |
118 PASS trimRight.call(true) is 'true' | 136 PASS trimRight.call(true) is 'true' |
119 PASS trim.call(false) is 'false' | 137 PASS trim.call(false) is 'false' |
120 PASS trimLeft.call(false) is 'false' | 138 PASS trimLeft.call(false) is 'false' |
121 PASS trimRight.call(false) is 'false' | 139 PASS trimRight.call(false) is 'false' |
122 PASS trim.call(({})) is '[object Object]' | 140 PASS trim.call(({})) is '[object Object]' |
123 PASS trimLeft.call(({})) is '[object Object]' | 141 PASS trimLeft.call(({})) is '[object Object]' |
124 PASS trimRight.call(({})) is '[object Object]' | 142 PASS trimRight.call(({})) is '[object Object]' |
125 PASS trim.call(({toString:function(){return 'wibble'}})) is 'wibble' | 143 PASS trim.call(({toString:function(){return 'wibble'}})) is 'wibble' |
126 PASS trimLeft.call(({toString:function(){return 'wibble'}})) is 'wibble' | 144 PASS trimLeft.call(({toString:function(){return 'wibble'}})) is 'wibble' |
127 PASS trimRight.call(({toString:function(){return 'wibble'}})) is 'wibble' | 145 PASS trimRight.call(({toString:function(){return 'wibble'}})) is 'wibble' |
128 PASS trim.call(['an','array']) is 'an,array' | 146 PASS trim.call(['an','array']) is 'an,array' |
129 PASS trimLeft.call(['an','array']) is 'an,array' | 147 PASS trimLeft.call(['an','array']) is 'an,array' |
130 PASS trimRight.call(['an','array']) is 'an,array' | 148 PASS trimRight.call(['an','array']) is 'an,array' |
131 PASS successfullyParsed is true | 149 PASS successfullyParsed is true |
132 | 150 |
133 TEST COMPLETE | 151 TEST COMPLETE |
134 | 152 |
OLD | NEW |