Home | History | Annotate | Download | only in webkit

Lines Matching refs:parseFloat

24 description('Tests for the parseFloat function.');
55 shouldBe("parseFloat()", "NaN");
56 shouldBe("parseFloat('')", "NaN");
57 shouldBe("parseFloat(' ')", "NaN");
58 shouldBe("parseFloat(' 0')", "0");
59 shouldBe("parseFloat('0 ')", "0");
60 shouldBe("parseFloat('x0')", "NaN");
61 shouldBe("parseFloat('0x')", "0");
62 shouldBe("parseFloat(' 1')", "1");
63 shouldBe("parseFloat('1 ')", "1");
64 shouldBe("parseFloat('x1')", "NaN");
65 shouldBe("parseFloat('1x')", "1");
66 shouldBe("parseFloat(' 2.3')", "2.3");
67 shouldBe("parseFloat('2.3 ')", "2.3");
68 shouldBe("parseFloat('x2.3')", "NaN");
69 shouldBe("parseFloat('2.3x')", "2.3");
70 shouldBe("parseFloat('0x2')", "0");
71 shouldBe("parseFloat('1' + nonASCIINonSpaceCharacter)", "1");
72 shouldBe("parseFloat(nonASCIINonSpaceCharacter + '1')", "NaN");
73 shouldBe("parseFloat('1' + illegalUTF16Sequence)", "1");
74 shouldBe("parseFloat(illegalUTF16Sequence + '1')", "NaN");
75 shouldBe("parseFloat(tab + '1')", "1");
76 shouldBe("parseFloat(nbsp + '1')", "1");
77 shouldBe("parseFloat(ff + '1')", "1");
78 shouldBe("parseFloat(vt + '1')", "1");
79 shouldBe("parseFloat(cr + '1')", "1");
80 shouldBe("parseFloat(lf + '1')", "1");
81 shouldBe("parseFloat(ls + '1')", "1");
82 shouldBe("parseFloat(ps + '1')", "1");
83 shouldBe("parseFloat(oghamSpaceMark + '1')", "1");
84 shouldBe("parseFloat(mongolianVowelSeparator + '1')", "1");
85 shouldBe("parseFloat(enQuad + '1')", "1");
86 shouldBe("parseFloat(emQuad + '1')", "1");
87 shouldBe("parseFloat(enSpace + '1')", "1");
88 shouldBe("parseFloat(emSpace + '1')", "1");
89 shouldBe("parseFloat(threePerEmSpace + '1')", "1");
90 shouldBe("parseFloat(fourPerEmSpace + '1')", "1");
91 shouldBe("parseFloat(sixPerEmSpace + '1')", "1");
92 shouldBe("parseFloat(figureSpace + '1')", "1");
93 shouldBe("parseFloat(punctuationSpace + '1')", "1");
94 shouldBe("parseFloat(thinSpace + '1')", "1");
95 shouldBe("parseFloat(hairSpace + '1')", "1");
96 shouldBe("parseFloat(narrowNoBreakSpace + '1')", "1");
97 shouldBe("parseFloat(mediumMathematicalSpace + '1')", "1");
98 shouldBe("parseFloat(ideographicSpace + '1')", "1");