Searched refs:shouldBeEqualToString (Results 1 – 25 of 28) sorted by relevance
12
/external/v8/test/webkit/fast/js/ |
D | number-toString.js | 28 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 …]
|
D | number-tofixed.js | 64 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 …]
|
D | number-toprecision.js | 29 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 …]
|
D | toString-number.js | 74 shouldBeEqualToString('Number(' + number + ').toString()', stringBase10); 75 shouldBeEqualToString('Number.prototype.toString.call(' + number + ')', stringBase10); 76 … shouldBeEqualToString('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); 86 …shouldBeEqualToString('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 …]
|
D | Promise-static-all.js | 62 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');
|
D | Promise-chained-then.js | 34 shouldBeEqualToString('result', 'hello'); 42 shouldBeEqualToString('result', 'hello2'); 51 shouldBeEqualToString('result', 'error'); 59 shouldBeEqualToString('result', 'error2'); 64 shouldBeEqualToString('result', 'recovered');
|
D | Promise-resolve-state.js | 40 shouldBeEqualToString('promiseState', 'pending'); 44 shouldBeEqualToString('promiseState', 'pending'); 47 shouldBeEqualToString('promiseState', 'fulfilled'); 48 shouldBeEqualToString('promiseResult', 'hello');
|
D | Promise-reject.js | 40 shouldBeEqualToString('promiseState', 'pending'); 44 shouldBeEqualToString('promiseState', 'pending'); 50 shouldBeEqualToString('promiseState', 'rejected'); 51 shouldBeEqualToString('promiseResult', 'hello');
|
D | Promise-then.js | 42 shouldBeEqualToString('result', 'hello'); 52 shouldBeEqualToString('result', 'world'); 59 shouldBeEqualToString('result', 'exception');
|
D | Promise-static-race.js | 67 shouldBeEqualToString('result', 'p1'); 77 shouldBeEqualToString('result', 'p6'); 83 shouldBeEqualToString('result', 'p2');
|
D | Promise-catch.js | 42 shouldBeEqualToString('result', 'hello'); 48 shouldBeEqualToString('result', 'bye');
|
D | Promise-init.js | 55 shouldBeEqualToString('result.message', 'foo'); 64 shouldBeEqualToString('result', 'hello');
|
D | Promise-resolve-chain.js | 45 shouldBeEqualToString('result', 'hello'); 55 shouldBeEqualToString('result', 'bye');
|
D | Promise-then-without-callbacks.js | 33 shouldBeEqualToString('result', 'hello');
|
D | Promise-static-reject.js | 35 shouldBeEqualToString('result', 'hello');
|
D | Promise-resolve.js | 37 shouldBeEqualToString('result', 'hello');
|
D | Promise-already-rejected.js | 39 shouldBeEqualToString('result', 'foo');
|
D | Promise-resolve-with-then-exception.js | 39 shouldBeEqualToString('result', 'hello');
|
D | Promise-exception.js | 41 shouldBeEqualToString('result', 'foobar');
|
D | Promise-simple.js | 40 shouldBeEqualToString('result', 'hello');
|
D | Promise-resolve-with-itself.js | 37 shouldBeEqualToString('result', 'TypeError: Chaining cycle detected for promise #<Promise>');
|
D | Promise-static-resolve.js | 35 shouldBeEqualToString('result', 'hello');
|
D | Promise-already-resolved.js | 38 shouldBeEqualToString('result', 'foo');
|
D | Promise-resolve-with-then-fulfill.js | 44 shouldBeEqualToString('result', 'hello');
|
/external/v8/test/webkit/ |
D | number-toExponential.js | 29 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