Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1408)

Side by Side Diff: test/webkit/fast/js/toString-number-expected.txt

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/webkit/fast/js/toString-number.js ('k') | test/webkit/webkit.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 # 1. Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 # 2. Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in the
11 # documentation and/or other materials provided with the distribution.
12 #
13 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24 Test the conversion performed by the function Number.prototype.toString.
25
26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
27
28
29 PASS Number(0).toString() is "0"
30 PASS Number.prototype.toString.call(0) is "0"
31 PASS Number.prototype.toString.call(new Number(0)) is "0"
32 PASS Number("0").toString() is "0"
33 PASS Number(0).toString(10) is "0"
34 PASS Number(0).toString(2) is "0"
35 PASS Number.prototype.toString.call(0, 2) is "0"
36 PASS Number.prototype.toString.call(new Number(0), 2) is "0"
37 PASS Number(0).toString(36) is "0"
38 PASS Number.prototype.toString.call(0, 36) is "0"
39 PASS Number.prototype.toString.call(new Number(0), 36) is "0"
40 PASS Number(-1).toString() is "-1"
41 PASS Number.prototype.toString.call(-1) is "-1"
42 PASS Number.prototype.toString.call(new Number(-1)) is "-1"
43 PASS Number("-1").toString() is "-1"
44 PASS Number(-1).toString(10) is "-1"
45 PASS Number(-1).toString(2) is "-1"
46 PASS Number.prototype.toString.call(-1, 2) is "-1"
47 PASS Number.prototype.toString.call(new Number(-1), 2) is "-1"
48 PASS Number(-1).toString(36) is "-1"
49 PASS Number.prototype.toString.call(-1, 36) is "-1"
50 PASS Number.prototype.toString.call(new Number(-1), 36) is "-1"
51 PASS Number(1).toString() is "1"
52 PASS Number.prototype.toString.call(1) is "1"
53 PASS Number.prototype.toString.call(new Number(1)) is "1"
54 PASS Number("1").toString() is "1"
55 PASS Number(1).toString(10) is "1"
56 PASS Number(1).toString(2) is "1"
57 PASS Number.prototype.toString.call(1, 2) is "1"
58 PASS Number.prototype.toString.call(new Number(1), 2) is "1"
59 PASS Number(1).toString(36) is "1"
60 PASS Number.prototype.toString.call(1, 36) is "1"
61 PASS Number.prototype.toString.call(new Number(1), 36) is "1"
62 PASS Number(1984).toString() is "1984"
63 PASS Number.prototype.toString.call(1984) is "1984"
64 PASS Number.prototype.toString.call(new Number(1984)) is "1984"
65 PASS Number("1984").toString() is "1984"
66 PASS Number(1984).toString(10) is "1984"
67 PASS Number(1984).toString(2) is "11111000000"
68 PASS Number.prototype.toString.call(1984, 2) is "11111000000"
69 PASS Number.prototype.toString.call(new Number(1984), 2) is "11111000000"
70 PASS Number(1984).toString(36) is "1j4"
71 PASS Number.prototype.toString.call(1984, 36) is "1j4"
72 PASS Number.prototype.toString.call(new Number(1984), 36) is "1j4"
73 PASS Number(-1984).toString() is "-1984"
74 PASS Number.prototype.toString.call(-1984) is "-1984"
75 PASS Number.prototype.toString.call(new Number(-1984)) is "-1984"
76 PASS Number("-1984").toString() is "-1984"
77 PASS Number(-1984).toString(10) is "-1984"
78 PASS Number(-1984).toString(2) is "-11111000000"
79 PASS Number.prototype.toString.call(-1984, 2) is "-11111000000"
80 PASS Number.prototype.toString.call(new Number(-1984), 2) is "-11111000000"
81 PASS Number(-1984).toString(36) is "-1j4"
82 PASS Number.prototype.toString.call(-1984, 36) is "-1j4"
83 PASS Number.prototype.toString.call(new Number(-1984), 36) is "-1j4"
84 PASS Number(2147483647).toString() is "2147483647"
85 PASS Number.prototype.toString.call(2147483647) is "2147483647"
86 PASS Number.prototype.toString.call(new Number(2147483647)) is "2147483647"
87 PASS Number("2147483647").toString() is "2147483647"
88 PASS Number(2147483647).toString(10) is "2147483647"
89 PASS Number(2147483647).toString(2) is "1111111111111111111111111111111"
90 PASS Number.prototype.toString.call(2147483647, 2) is "1111111111111111111111111 111111"
91 PASS Number.prototype.toString.call(new Number(2147483647), 2) is "1111111111111 111111111111111111"
92 PASS Number(2147483647).toString(36) is "zik0zj"
93 PASS Number.prototype.toString.call(2147483647, 36) is "zik0zj"
94 PASS Number.prototype.toString.call(new Number(2147483647), 36) is "zik0zj"
95 PASS Number(-2147483648).toString() is "-2147483648"
96 PASS Number.prototype.toString.call(-2147483648) is "-2147483648"
97 PASS Number.prototype.toString.call(new Number(-2147483648)) is "-2147483648"
98 PASS Number("-2147483648").toString() is "-2147483648"
99 PASS Number(-2147483648).toString(10) is "-2147483648"
100 PASS Number(-2147483648).toString(2) is "-10000000000000000000000000000000"
101 PASS Number.prototype.toString.call(-2147483648, 2) is "-10000000000000000000000 000000000"
102 PASS Number.prototype.toString.call(new Number(-2147483648), 2) is "-10000000000 000000000000000000000"
103 PASS Number(-2147483648).toString(36) is "-zik0zk"
104 PASS Number.prototype.toString.call(-2147483648, 36) is "-zik0zk"
105 PASS Number.prototype.toString.call(new Number(-2147483648), 36) is "-zik0zk"
106 PASS Number(9007199254740992).toString() is "9007199254740992"
107 PASS Number.prototype.toString.call(9007199254740992) is "9007199254740992"
108 PASS Number.prototype.toString.call(new Number(9007199254740992)) is "9007199254 740992"
109 PASS Number("9007199254740992").toString() is "9007199254740992"
110 PASS Number(9007199254740992).toString(10) is "9007199254740992"
111 PASS Number(9007199254740992).toString(2) is "1000000000000000000000000000000000 00000000000000000000"
112 PASS Number.prototype.toString.call(9007199254740992, 2) is "1000000000000000000 00000000000000000000000000000000000"
113 PASS Number.prototype.toString.call(new Number(9007199254740992), 2) is "1000000 00000000000000000000000000000000000000000000000"
114 PASS Number(9007199254740992).toString(36) is "2gosa7pa2gw"
115 PASS Number.prototype.toString.call(9007199254740992, 36) is "2gosa7pa2gw"
116 PASS Number.prototype.toString.call(new Number(9007199254740992), 36) is "2gosa7 pa2gw"
117 PASS Number(-9007199254740992).toString() is "-9007199254740992"
118 PASS Number.prototype.toString.call(-9007199254740992) is "-9007199254740992"
119 PASS Number.prototype.toString.call(new Number(-9007199254740992)) is "-90071992 54740992"
120 PASS Number("-9007199254740992").toString() is "-9007199254740992"
121 PASS Number(-9007199254740992).toString(10) is "-9007199254740992"
122 PASS Number(-9007199254740992).toString(2) is "-10000000000000000000000000000000 0000000000000000000000"
123 PASS Number.prototype.toString.call(-9007199254740992, 2) is "-10000000000000000 0000000000000000000000000000000000000"
124 PASS Number.prototype.toString.call(new Number(-9007199254740992), 2) is "-10000 0000000000000000000000000000000000000000000000000"
125 PASS Number(-9007199254740992).toString(36) is "-2gosa7pa2gw"
126 PASS Number.prototype.toString.call(-9007199254740992, 36) is "-2gosa7pa2gw"
127 PASS Number.prototype.toString.call(new Number(-9007199254740992), 36) is "-2gos a7pa2gw"
128 PASS Number(0).toString() is "0"
129 PASS Number.prototype.toString.call(0) is "0"
130 PASS Number.prototype.toString.call(new Number(0)) is "0"
131 PASS Number("0").toString() is "0"
132 PASS Number(0).toString(10) is "0"
133 PASS Number(0).toString(2) is "0"
134 PASS Number.prototype.toString.call(0, 2) is "0"
135 PASS Number.prototype.toString.call(new Number(0), 2) is "0"
136 PASS Number(0).toString(36) is "0"
137 PASS Number.prototype.toString.call(0, 36) is "0"
138 PASS Number.prototype.toString.call(new Number(0), 36) is "0"
139 PASS Number(-1).toString() is "-1"
140 PASS Number.prototype.toString.call(-1) is "-1"
141 PASS Number.prototype.toString.call(new Number(-1)) is "-1"
142 PASS Number("-1").toString() is "-1"
143 PASS Number(-1).toString(10) is "-1"
144 PASS Number(-1).toString(2) is "-1"
145 PASS Number.prototype.toString.call(-1, 2) is "-1"
146 PASS Number.prototype.toString.call(new Number(-1), 2) is "-1"
147 PASS Number(-1).toString(36) is "-1"
148 PASS Number.prototype.toString.call(-1, 36) is "-1"
149 PASS Number.prototype.toString.call(new Number(-1), 36) is "-1"
150 PASS Number(1).toString() is "1"
151 PASS Number.prototype.toString.call(1) is "1"
152 PASS Number.prototype.toString.call(new Number(1)) is "1"
153 PASS Number("1").toString() is "1"
154 PASS Number(1).toString(10) is "1"
155 PASS Number(1).toString(2) is "1"
156 PASS Number.prototype.toString.call(1, 2) is "1"
157 PASS Number.prototype.toString.call(new Number(1), 2) is "1"
158 PASS Number(1).toString(36) is "1"
159 PASS Number.prototype.toString.call(1, 36) is "1"
160 PASS Number.prototype.toString.call(new Number(1), 36) is "1"
161 PASS Number(1984).toString() is "1984"
162 PASS Number.prototype.toString.call(1984) is "1984"
163 PASS Number.prototype.toString.call(new Number(1984)) is "1984"
164 PASS Number("1984").toString() is "1984"
165 PASS Number(1984).toString(10) is "1984"
166 PASS Number(1984).toString(2) is "11111000000"
167 PASS Number.prototype.toString.call(1984, 2) is "11111000000"
168 PASS Number.prototype.toString.call(new Number(1984), 2) is "11111000000"
169 PASS Number(1984).toString(36) is "1j4"
170 PASS Number.prototype.toString.call(1984, 36) is "1j4"
171 PASS Number.prototype.toString.call(new Number(1984), 36) is "1j4"
172 PASS Number(-1984).toString() is "-1984"
173 PASS Number.prototype.toString.call(-1984) is "-1984"
174 PASS Number.prototype.toString.call(new Number(-1984)) is "-1984"
175 PASS Number("-1984").toString() is "-1984"
176 PASS Number(-1984).toString(10) is "-1984"
177 PASS Number(-1984).toString(2) is "-11111000000"
178 PASS Number.prototype.toString.call(-1984, 2) is "-11111000000"
179 PASS Number.prototype.toString.call(new Number(-1984), 2) is "-11111000000"
180 PASS Number(-1984).toString(36) is "-1j4"
181 PASS Number.prototype.toString.call(-1984, 36) is "-1j4"
182 PASS Number.prototype.toString.call(new Number(-1984), 36) is "-1j4"
183 PASS Number(2147483647).toString() is "2147483647"
184 PASS Number.prototype.toString.call(2147483647) is "2147483647"
185 PASS Number.prototype.toString.call(new Number(2147483647)) is "2147483647"
186 PASS Number("2147483647").toString() is "2147483647"
187 PASS Number(2147483647).toString(10) is "2147483647"
188 PASS Number(2147483647).toString(2) is "1111111111111111111111111111111"
189 PASS Number.prototype.toString.call(2147483647, 2) is "1111111111111111111111111 111111"
190 PASS Number.prototype.toString.call(new Number(2147483647), 2) is "1111111111111 111111111111111111"
191 PASS Number(2147483647).toString(36) is "zik0zj"
192 PASS Number.prototype.toString.call(2147483647, 36) is "zik0zj"
193 PASS Number.prototype.toString.call(new Number(2147483647), 36) is "zik0zj"
194 PASS Number(-2147483648).toString() is "-2147483648"
195 PASS Number.prototype.toString.call(-2147483648) is "-2147483648"
196 PASS Number.prototype.toString.call(new Number(-2147483648)) is "-2147483648"
197 PASS Number("-2147483648").toString() is "-2147483648"
198 PASS Number(-2147483648).toString(10) is "-2147483648"
199 PASS Number(-2147483648).toString(2) is "-10000000000000000000000000000000"
200 PASS Number.prototype.toString.call(-2147483648, 2) is "-10000000000000000000000 000000000"
201 PASS Number.prototype.toString.call(new Number(-2147483648), 2) is "-10000000000 000000000000000000000"
202 PASS Number(-2147483648).toString(36) is "-zik0zk"
203 PASS Number.prototype.toString.call(-2147483648, 36) is "-zik0zk"
204 PASS Number.prototype.toString.call(new Number(-2147483648), 36) is "-zik0zk"
205 PASS Number(9007199254740992).toString() is "9007199254740992"
206 PASS Number.prototype.toString.call(9007199254740992) is "9007199254740992"
207 PASS Number.prototype.toString.call(new Number(9007199254740992)) is "9007199254 740992"
208 PASS Number("9007199254740992").toString() is "9007199254740992"
209 PASS Number(9007199254740992).toString(10) is "9007199254740992"
210 PASS Number(9007199254740992).toString(2) is "1000000000000000000000000000000000 00000000000000000000"
211 PASS Number.prototype.toString.call(9007199254740992, 2) is "1000000000000000000 00000000000000000000000000000000000"
212 PASS Number.prototype.toString.call(new Number(9007199254740992), 2) is "1000000 00000000000000000000000000000000000000000000000"
213 PASS Number(9007199254740992).toString(36) is "2gosa7pa2gw"
214 PASS Number.prototype.toString.call(9007199254740992, 36) is "2gosa7pa2gw"
215 PASS Number.prototype.toString.call(new Number(9007199254740992), 36) is "2gosa7 pa2gw"
216 PASS Number(-9007199254740992).toString() is "-9007199254740992"
217 PASS Number.prototype.toString.call(-9007199254740992) is "-9007199254740992"
218 PASS Number.prototype.toString.call(new Number(-9007199254740992)) is "-90071992 54740992"
219 PASS Number("-9007199254740992").toString() is "-9007199254740992"
220 PASS Number(-9007199254740992).toString(10) is "-9007199254740992"
221 PASS Number(-9007199254740992).toString(2) is "-10000000000000000000000000000000 0000000000000000000000"
222 PASS Number.prototype.toString.call(-9007199254740992, 2) is "-10000000000000000 0000000000000000000000000000000000000"
223 PASS Number.prototype.toString.call(new Number(-9007199254740992), 2) is "-10000 0000000000000000000000000000000000000000000000000"
224 PASS Number(-9007199254740992).toString(36) is "-2gosa7pa2gw"
225 PASS Number.prototype.toString.call(-9007199254740992, 36) is "-2gosa7pa2gw"
226 PASS Number.prototype.toString.call(new Number(-9007199254740992), 36) is "-2gos a7pa2gw"
227 PASS Number(0.1).toString() is "0.1"
228 PASS Number.prototype.toString.call(0.1) is "0.1"
229 PASS Number.prototype.toString.call(new Number(0.1)) is "0.1"
230 PASS Number("0.1").toString() is "0.1"
231 PASS Number(0.1).toString(10) is "0.1"
232 PASS Number(0.1).toString(2) is "0.000110011001100110011001100110011001100110011 0011001101"
233 PASS Number.prototype.toString.call(0.1, 2) is "0.000110011001100110011001100110 0110011001100110011001101"
234 PASS Number.prototype.toString.call(new Number(0.1), 2) is "0.000110011001100110 0110011001100110011001100110011001101"
235 FAIL Number(0.1).toString(36) should be 0.3lllllllllm. Was 0.3llllllllllqsn8td1p 464unmi.
236 FAIL Number.prototype.toString.call(0.1, 36) should be 0.3lllllllllm. Was 0.3lll lllllllqsn8td1p464unmi.
237 FAIL Number.prototype.toString.call(new Number(0.1), 36) should be 0.3lllllllllm . Was 0.3llllllllllqsn8td1p464unmi.
238 PASS Number(-1.1).toString() is "-1.1"
239 PASS Number.prototype.toString.call(-1.1) is "-1.1"
240 PASS Number.prototype.toString.call(new Number(-1.1)) is "-1.1"
241 PASS Number("-1.1").toString() is "-1.1"
242 PASS Number(-1.1).toString(10) is "-1.1"
243 PASS Number(-1.1).toString(2) is "-1.0001100110011001100110011001100110011001100 11001101"
244 PASS Number.prototype.toString.call(-1.1, 2) is "-1.0001100110011001100110011001 10011001100110011001101"
245 PASS Number.prototype.toString.call(new Number(-1.1), 2) is "-1.0001100110011001 10011001100110011001100110011001101"
246 FAIL Number(-1.1).toString(36) should be -1.3llllllllm. Was -1.3lllllllllxagau2c tidswz5mi.
247 FAIL Number.prototype.toString.call(-1.1, 36) should be -1.3llllllllm. Was -1.3l llllllllxagau2ctidswz5mi.
248 FAIL Number.prototype.toString.call(new Number(-1.1), 36) should be -1.3llllllll m. Was -1.3lllllllllxagau2ctidswz5mi.
249 PASS Number(1.1).toString() is "1.1"
250 PASS Number.prototype.toString.call(1.1) is "1.1"
251 PASS Number.prototype.toString.call(new Number(1.1)) is "1.1"
252 PASS Number("1.1").toString() is "1.1"
253 PASS Number(1.1).toString(10) is "1.1"
254 PASS Number(1.1).toString(2) is "1.000110011001100110011001100110011001100110011 001101"
255 PASS Number.prototype.toString.call(1.1, 2) is "1.000110011001100110011001100110 011001100110011001101"
256 PASS Number.prototype.toString.call(new Number(1.1), 2) is "1.000110011001100110 011001100110011001100110011001101"
257 FAIL Number(1.1).toString(36) should be 1.3llllllllm. Was 1.3lllllllllxagau2ctid swz5mi.
258 FAIL Number.prototype.toString.call(1.1, 36) should be 1.3llllllllm. Was 1.3llll lllllxagau2ctidswz5mi.
259 FAIL Number.prototype.toString.call(new Number(1.1), 36) should be 1.3llllllllm. Was 1.3lllllllllxagau2ctidswz5mi.
260 PASS Number(1984.1).toString() is "1984.1"
261 PASS Number.prototype.toString.call(1984.1) is "1984.1"
262 PASS Number.prototype.toString.call(new Number(1984.1)) is "1984.1"
263 PASS Number("1984.1").toString() is "1984.1"
264 PASS Number(1984.1).toString(10) is "1984.1"
265 PASS Number(1984.1).toString(2) is "11111000000.00011001100110011001100110011001 100110011"
266 PASS Number.prototype.toString.call(1984.1, 2) is "11111000000.00011001100110011 001100110011001100110011"
267 PASS Number.prototype.toString.call(new Number(1984.1), 2) is "11111000000.00011 001100110011001100110011001100110011"
268 FAIL Number(1984.1).toString(36) should be 1j4.3lllllllc. Was 1j4.3lllllllcd2obs szcl3di.
269 FAIL Number.prototype.toString.call(1984.1, 36) should be 1j4.3lllllllc. Was 1j4 .3lllllllcd2obsszcl3di.
270 FAIL Number.prototype.toString.call(new Number(1984.1), 36) should be 1j4.3lllll llc. Was 1j4.3lllllllcd2obsszcl3di.
271 PASS Number(-1984.1).toString() is "-1984.1"
272 PASS Number.prototype.toString.call(-1984.1) is "-1984.1"
273 PASS Number.prototype.toString.call(new Number(-1984.1)) is "-1984.1"
274 PASS Number("-1984.1").toString() is "-1984.1"
275 PASS Number(-1984.1).toString(10) is "-1984.1"
276 PASS Number(-1984.1).toString(2) is "-11111000000.000110011001100110011001100110 01100110011"
277 PASS Number.prototype.toString.call(-1984.1, 2) is "-11111000000.000110011001100 11001100110011001100110011"
278 PASS Number.prototype.toString.call(new Number(-1984.1), 2) is "-11111000000.000 11001100110011001100110011001100110011"
279 FAIL Number(-1984.1).toString(36) should be -1j4.3lllllllc. Was -1j4.3lllllllcd2 obsszcl3di.
280 FAIL Number.prototype.toString.call(-1984.1, 36) should be -1j4.3lllllllc. Was - 1j4.3lllllllcd2obsszcl3di.
281 FAIL Number.prototype.toString.call(new Number(-1984.1), 36) should be -1j4.3lll llllc. Was -1j4.3lllllllcd2obsszcl3di.
282 PASS Number(2147483647.1).toString() is "2147483647.1"
283 PASS Number.prototype.toString.call(2147483647.1) is "2147483647.1"
284 PASS Number.prototype.toString.call(new Number(2147483647.1)) is "2147483647.1"
285 PASS Number("2147483647.1").toString() is "2147483647.1"
286 PASS Number(2147483647.1).toString(10) is "2147483647.1"
287 PASS Number(2147483647.1).toString(2) is "1111111111111111111111111111111.000110 011001100110011"
288 PASS Number.prototype.toString.call(2147483647.1, 2) is "11111111111111111111111 11111111.000110011001100110011"
289 PASS Number.prototype.toString.call(new Number(2147483647.1), 2) is "11111111111 11111111111111111111.000110011001100110011"
290 FAIL Number(2147483647.1).toString(36) should be zik0zj.3lllg. Was zik0zj.3lllfu 07ldi.
291 FAIL Number.prototype.toString.call(2147483647.1, 36) should be zik0zj.3lllg. Wa s zik0zj.3lllfu07ldi.
292 FAIL Number.prototype.toString.call(new Number(2147483647.1), 36) should be zik0 zj.3lllg. Was zik0zj.3lllfu07ldi.
293 PASS Number(-2147483648.1).toString() is "-2147483648.1"
294 PASS Number.prototype.toString.call(-2147483648.1) is "-2147483648.1"
295 PASS Number.prototype.toString.call(new Number(-2147483648.1)) is "-2147483648.1 "
296 PASS Number("-2147483648.1").toString() is "-2147483648.1"
297 PASS Number(-2147483648.1).toString(10) is "-2147483648.1"
298 PASS Number(-2147483648.1).toString(2) is "-10000000000000000000000000000000.000 110011001100110011"
299 PASS Number.prototype.toString.call(-2147483648.1, 2) is "-100000000000000000000 00000000000.000110011001100110011"
300 PASS Number.prototype.toString.call(new Number(-2147483648.1), 2) is "-100000000 00000000000000000000000.000110011001100110011"
301 FAIL Number(-2147483648.1).toString(36) should be -zik0zk.3lllg. Was -zik0zk.3ll lfu07ldi.
302 FAIL Number.prototype.toString.call(-2147483648.1, 36) should be -zik0zk.3lllg. Was -zik0zk.3lllfu07ldi.
303 FAIL Number.prototype.toString.call(new Number(-2147483648.1), 36) should be -zi k0zk.3lllg. Was -zik0zk.3lllfu07ldi.
304 PASS Number(9007199254740992).toString() is "9007199254740992"
305 PASS Number.prototype.toString.call(9007199254740992) is "9007199254740992"
306 PASS Number.prototype.toString.call(new Number(9007199254740992)) is "9007199254 740992"
307 PASS Number("9007199254740992").toString() is "9007199254740992"
308 PASS Number(9007199254740992).toString(10) is "9007199254740992"
309 PASS Number(9007199254740992).toString(2) is "1000000000000000000000000000000000 00000000000000000000"
310 PASS Number.prototype.toString.call(9007199254740992, 2) is "1000000000000000000 00000000000000000000000000000000000"
311 PASS Number.prototype.toString.call(new Number(9007199254740992), 2) is "1000000 00000000000000000000000000000000000000000000000"
312 PASS Number(9007199254740992).toString(36) is "2gosa7pa2gw"
313 PASS Number.prototype.toString.call(9007199254740992, 36) is "2gosa7pa2gw"
314 PASS Number.prototype.toString.call(new Number(9007199254740992), 36) is "2gosa7 pa2gw"
315 PASS Number(-9007199254740992).toString() is "-9007199254740992"
316 PASS Number.prototype.toString.call(-9007199254740992) is "-9007199254740992"
317 PASS Number.prototype.toString.call(new Number(-9007199254740992)) is "-90071992 54740992"
318 PASS Number("-9007199254740992").toString() is "-9007199254740992"
319 PASS Number(-9007199254740992).toString(10) is "-9007199254740992"
320 PASS Number(-9007199254740992).toString(2) is "-10000000000000000000000000000000 0000000000000000000000"
321 PASS Number.prototype.toString.call(-9007199254740992, 2) is "-10000000000000000 0000000000000000000000000000000000000"
322 PASS Number.prototype.toString.call(new Number(-9007199254740992), 2) is "-10000 0000000000000000000000000000000000000000000000000"
323 PASS Number(-9007199254740992).toString(36) is "-2gosa7pa2gw"
324 PASS Number.prototype.toString.call(-9007199254740992, 36) is "-2gosa7pa2gw"
325 PASS Number.prototype.toString.call(new Number(-9007199254740992), 36) is "-2gos a7pa2gw"
326 PASS successfullyParsed is true
327
328 TEST COMPLETE
329
OLDNEW
« no previous file with comments | « test/webkit/fast/js/toString-number.js ('k') | test/webkit/webkit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698