Home | History | Annotate | Download | only in kde

Lines Matching refs:parseInt

47 shouldBe('isNaN(parseInt("Hello", 8))', "true");
48 shouldBe('isNaN(parseInt("FFF", 10))', "true");
49 shouldBe('isNaN(parseInt(".5", 10))', "true");
54 shouldBeTrue("isNaN(parseInt())");
55 shouldBeTrue("isNaN(parseInt(''))");
56 shouldBeTrue("isNaN(parseInt(' '))");
57 shouldBeTrue("isNaN(parseInt('a'))");
58 shouldBe("parseInt(1)", "1");
59 shouldBe("parseInt(1234567890123456)", "1234567890123456");
60 shouldBe("parseInt(1.2)", "1");
61 shouldBe("parseInt(' 2.3')", "2");
62 shouldBe("parseInt('0x10')", "16");
63 shouldBe("parseInt('11', 0)", "11");
64 shouldBe("parseInt('F', 16)", "15");
66 shouldBeTrue("isNaN(parseInt('10', 40))");
67 shouldBe("parseInt('3x')", "3");
68 shouldBe("parseInt('3 x')", "3");
69 shouldBeTrue("isNaN(parseInt('Infinity'))");
72 shouldBe('parseInt("15")', "15");
73 shouldBe('parseInt("015")', "15"); // ES5 prohibits parseInt from handling octal, see annex E.
74 shouldBe('parseInt("0xf")', "15");
75 shouldBe('parseInt("15", 0)', "15");
76 shouldBe('parseInt("15", 10)', "15");
77 shouldBe('parseInt("F", 16)', "15");
78 shouldBe('parseInt("17", 8)', "15");
79 shouldBe('parseInt("15.99", 10)', "15");
80 shouldBe('parseInt("FXX123", 16)', "15");
81 shouldBe('parseInt("1111", 2)', "15");
82 shouldBe('parseInt("15*3", 10)', "15");
85 shouldBe('parseInt("0x7", 10)', "0");
86 shouldBe('parseInt("1x7", 10)', "1");