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

Side by Side Diff: test/webkit/parseFloat-expected.txt

Issue 18068003: Migrated several tests from blink to V8 repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/parseFloat.js ('k') | test/webkit/parseInt.js » ('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 Tests for the parseFloat function.
25
26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
27
28
29 PASS parseFloat() is NaN
30 PASS parseFloat('') is NaN
31 PASS parseFloat(' ') is NaN
32 PASS parseFloat(' 0') is 0
33 PASS parseFloat('0 ') is 0
34 PASS parseFloat('x0') is NaN
35 PASS parseFloat('0x') is 0
36 PASS parseFloat(' 1') is 1
37 PASS parseFloat('1 ') is 1
38 PASS parseFloat('x1') is NaN
39 PASS parseFloat('1x') is 1
40 PASS parseFloat(' 2.3') is 2.3
41 PASS parseFloat('2.3 ') is 2.3
42 PASS parseFloat('x2.3') is NaN
43 PASS parseFloat('2.3x') is 2.3
44 PASS parseFloat('0x2') is 0
45 PASS parseFloat('1' + nonASCIINonSpaceCharacter) is 1
46 PASS parseFloat(nonASCIINonSpaceCharacter + '1') is NaN
47 PASS parseFloat('1' + illegalUTF16Sequence) is 1
48 PASS parseFloat(illegalUTF16Sequence + '1') is NaN
49 PASS parseFloat(tab + '1') is 1
50 PASS parseFloat(nbsp + '1') is 1
51 PASS parseFloat(ff + '1') is 1
52 PASS parseFloat(vt + '1') is 1
53 PASS parseFloat(cr + '1') is 1
54 PASS parseFloat(lf + '1') is 1
55 PASS parseFloat(ls + '1') is 1
56 PASS parseFloat(ps + '1') is 1
57 PASS parseFloat(oghamSpaceMark + '1') is 1
58 PASS parseFloat(mongolianVowelSeparator + '1') is 1
59 PASS parseFloat(enQuad + '1') is 1
60 PASS parseFloat(emQuad + '1') is 1
61 PASS parseFloat(enSpace + '1') is 1
62 PASS parseFloat(emSpace + '1') is 1
63 PASS parseFloat(threePerEmSpace + '1') is 1
64 PASS parseFloat(fourPerEmSpace + '1') is 1
65 PASS parseFloat(sixPerEmSpace + '1') is 1
66 PASS parseFloat(figureSpace + '1') is 1
67 PASS parseFloat(punctuationSpace + '1') is 1
68 PASS parseFloat(thinSpace + '1') is 1
69 PASS parseFloat(hairSpace + '1') is 1
70 PASS parseFloat(narrowNoBreakSpace + '1') is 1
71 PASS parseFloat(mediumMathematicalSpace + '1') is 1
72 PASS parseFloat(ideographicSpace + '1') is 1
73 PASS successfullyParsed is true
74
75 TEST COMPLETE
76
OLDNEW
« no previous file with comments | « test/webkit/parseFloat.js ('k') | test/webkit/parseInt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698