Home
last modified time | relevance | path

Searched refs:shouldBeEqualToString (Results 1 – 25 of 28) sorted by relevance

12

/external/v8/test/webkit/fast/js/
Dnumber-toString.js28 shouldBeEqualToString("(0.0).toString(4)", "0");
29 shouldBeEqualToString("(-0.0).toString(4)", "0");
30 shouldBeEqualToString("(0.0).toString()", "0");
31 shouldBeEqualToString("(-0.0).toString()", "0");
34 shouldBeEqualToString("(1234.567).toString()", "1234.567");
47 shouldBeEqualToString("(1234.567).toString(2)", "10011010010.10010001001001101110100101111000110101…
48 shouldBeEqualToString("(1234.567).toString(3)", "1200201.120022100021001021021002202");
49 shouldBeEqualToString("(1234.567).toString(4)", "103102.21010212322113203111");
50 shouldBeEqualToString("(1234.567).toString(4.9)", "103102.21010212322113203111");
51 shouldBeEqualToString("(1234.567).toString(5)", "14414.240414141414141414");
[all …]
Dnumber-tofixed.js64 shouldBeEqualToString("(0.0).toFixed(4)", "0.0000");
65 shouldBeEqualToString("(-0.0).toFixed(4)", "0.0000");
66 shouldBeEqualToString("(0.0).toFixed()", "0");
67 shouldBeEqualToString("(-0.0).toFixed()", "0");
70 shouldBeEqualToString("(1234.567).toFixed()", "1235");
71 shouldBeEqualToString("(1234.567).toFixed(0)", "1235");
73 shouldBeEqualToString("(1234.567).toFixed(null)", "1235");
74 shouldBeEqualToString("(1234.567).toFixed(false)", "1235");
75 shouldBeEqualToString("(1234.567).toFixed('foo')", "1235");
76 shouldBeEqualToString("(1234.567).toFixed(nan)", "1235"); // nan is treated like 0
[all …]
Dnumber-toprecision.js29 shouldBeEqualToString("(0.999).toPrecision(1)", "1");
30 shouldBeEqualToString("(0.999).toPrecision(2)", "1.0");
31 shouldBeEqualToString("(0.999).toPrecision(3)", "0.999");
37 shouldBeEqualToString("(0.0).toPrecision(4)", "0.000");
38 shouldBeEqualToString("(-0.0).toPrecision(4)", "0.000");
39 shouldBeEqualToString("(0.0).toPrecision()", "0");
40 shouldBeEqualToString("(-0.0).toPrecision()", "0");
41 shouldBeEqualToString("(1234.567).toPrecision()", "1234.567");
47 shouldBeEqualToString("(1234.567).toPrecision(1)", "1e+3");
48 shouldBeEqualToString("(1234.567).toPrecision(true)", "1e+3"); // just like 1
[all …]
DtoString-number.js74 shouldBeEqualToString('Number(' + number + ').toString()', stringBase10);
75 shouldBeEqualToString('Number.prototype.toString.call(' + number + ')', stringBase10);
76shouldBeEqualToString('Number.prototype.toString.call(new Number(' + number + '))', stringBase10);
78 shouldBeEqualToString('Number("' + number + '").toString()', stringBase10);
80 shouldBeEqualToString('Number(' + number + ').toString(10)', stringBase10);
84 shouldBeEqualToString('Number(' + number + ').toString(2)', stringBase2);
85 shouldBeEqualToString('Number.prototype.toString.call(' + number + ', 2)', stringBase2);
86shouldBeEqualToString('Number.prototype.toString.call(new Number(' + number + '), 2)', stringBase2…
90 shouldBeEqualToString('Number(' + number + ').toString(36)', stringBase36);
91 shouldBeEqualToString('Number.prototype.toString.call(' + number + ', 36)', stringBase36);
[all …]
DPromise-static-all.js62 shouldBeEqualToString('result[0]', 'p1');
63 shouldBeEqualToString('result[1]', 'p2');
64 shouldBeEqualToString('result[2]', 'p3');
74 shouldBeEqualToString('result', 'p6');
81 shouldBeEqualToString('result[0]', 'p2');
91 shouldBeEqualToString('result[0]', 'p2');
104 shouldBeEqualToString('result[0]', 'p2');
DPromise-chained-then.js34 shouldBeEqualToString('result', 'hello');
42 shouldBeEqualToString('result', 'hello2');
51 shouldBeEqualToString('result', 'error');
59 shouldBeEqualToString('result', 'error2');
64 shouldBeEqualToString('result', 'recovered');
DPromise-resolve-state.js40 shouldBeEqualToString('promiseState', 'pending');
44 shouldBeEqualToString('promiseState', 'pending');
47 shouldBeEqualToString('promiseState', 'fulfilled');
48 shouldBeEqualToString('promiseResult', 'hello');
DPromise-reject.js40 shouldBeEqualToString('promiseState', 'pending');
44 shouldBeEqualToString('promiseState', 'pending');
50 shouldBeEqualToString('promiseState', 'rejected');
51 shouldBeEqualToString('promiseResult', 'hello');
DPromise-then.js42 shouldBeEqualToString('result', 'hello');
52 shouldBeEqualToString('result', 'world');
59 shouldBeEqualToString('result', 'exception');
DPromise-static-race.js67 shouldBeEqualToString('result', 'p1');
77 shouldBeEqualToString('result', 'p6');
83 shouldBeEqualToString('result', 'p2');
DPromise-catch.js42 shouldBeEqualToString('result', 'hello');
48 shouldBeEqualToString('result', 'bye');
DPromise-init.js55 shouldBeEqualToString('result.message', 'foo');
64 shouldBeEqualToString('result', 'hello');
DPromise-resolve-chain.js45 shouldBeEqualToString('result', 'hello');
55 shouldBeEqualToString('result', 'bye');
DPromise-then-without-callbacks.js33 shouldBeEqualToString('result', 'hello');
DPromise-static-reject.js35 shouldBeEqualToString('result', 'hello');
DPromise-resolve.js37 shouldBeEqualToString('result', 'hello');
DPromise-already-rejected.js39 shouldBeEqualToString('result', 'foo');
DPromise-resolve-with-then-exception.js39 shouldBeEqualToString('result', 'hello');
DPromise-exception.js41 shouldBeEqualToString('result', 'foobar');
DPromise-simple.js40 shouldBeEqualToString('result', 'hello');
DPromise-resolve-with-itself.js37 shouldBeEqualToString('result', 'TypeError: Chaining cycle detected for promise #<Promise>');
DPromise-static-resolve.js35 shouldBeEqualToString('result', 'hello');
DPromise-already-resolved.js38 shouldBeEqualToString('result', 'foo');
DPromise-resolve-with-then-fulfill.js44 shouldBeEqualToString('result', 'hello');
/external/v8/test/webkit/
Dnumber-toExponential.js29 shouldBeEqualToString("(0.0).toExponential(4)", "0.0000e+0");
30 shouldBeEqualToString("(-0.0).toExponential(4)", "0.0000e+0");
31 shouldBeEqualToString("(0.0).toExponential()", "0e+0");
32 shouldBeEqualToString("(-0.0).toExponential()", "0e+0");
34 shouldBeEqualToString("(123.456).toExponential()", "1.23456e+2");
35 shouldBeEqualToString("(123.456).toExponential(0)", "1e+2");
37 shouldBeEqualToString("(123.456).toExponential(null)", "1e+2");
38 shouldBeEqualToString("(123.456).toExponential(false)", "1e+2");
39 shouldBeEqualToString("(123.456).toExponential('foo')", "1e+2");
40 shouldBeEqualToString("(123.456).toExponential(nan)", "1e+2"); // nan is treated like 0
[all …]

12