| Index: test/webkit/parseInt-expected.txt
|
| diff --git a/test/webkit/concat-while-having-a-bad-time-expected.txt b/test/webkit/parseInt-expected.txt
|
| similarity index 51%
|
| copy from test/webkit/concat-while-having-a-bad-time-expected.txt
|
| copy to test/webkit/parseInt-expected.txt
|
| index f949db98fd7b911d30b20281c82ee0f801405c77..6a644a0b1296ac8835e74c76878b3d3b05f5adc0 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time-expected.txt
|
| +++ b/test/webkit/parseInt-expected.txt
|
| @@ -21,12 +21,48 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating.
|
| +Tests for the parseInt function.
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
| -PASS [42].concat() is [42]
|
| +PASS parseInt('123') is 123
|
| +PASS parseInt('123x4') is 123
|
| +PASS parseInt('-123') is -123
|
| +PASS parseInt('0x123') is 0x123
|
| +PASS parseInt('0x123x4') is 0x123
|
| +PASS parseInt('-0x123x4') is -0x123
|
| +PASS parseInt('-') is Number.NaN
|
| +PASS parseInt('0x') is Number.NaN
|
| +PASS parseInt('-0x') is Number.NaN
|
| +PASS parseInt('123', undefined) is 123
|
| +PASS parseInt('123', null) is 123
|
| +PASS parseInt('123', 0) is 123
|
| +PASS parseInt('123', 10) is 123
|
| +PASS parseInt('123', 16) is 0x123
|
| +PASS parseInt('0x123', undefined) is 0x123
|
| +PASS parseInt('0x123', null) is 0x123
|
| +PASS parseInt('0x123', 0) is 0x123
|
| +PASS parseInt('0x123', 10) is 0
|
| +PASS parseInt('0x123', 16) is 0x123
|
| +PASS parseInt(Math.pow(10, 20)) is 100000000000000000000
|
| +PASS parseInt(Math.pow(10, 21)) is 1
|
| +PASS parseInt(Math.pow(10, -6)) is 0
|
| +PASS parseInt(Math.pow(10, -7)) is 1
|
| +PASS parseInt(-Math.pow(10, 20)) is -100000000000000000000
|
| +PASS parseInt(-Math.pow(10, 21)) is -1
|
| +PASS parseInt(-Math.pow(10, -6)) is -0
|
| +PASS parseInt(-Math.pow(10, -7)) is -1
|
| +PASS parseInt('0') is 0
|
| +PASS parseInt('-0') is -0
|
| +PASS parseInt(0) is 0
|
| +PASS parseInt(-0) is 0
|
| +PASS parseInt(2147483647) is 2147483647
|
| +PASS parseInt(2147483648) is 2147483648
|
| +PASS parseInt('2147483647') is 2147483647
|
| +PASS parseInt('2147483648') is 2147483648
|
| +PASS state = null; try { parseInt('123', throwingRadix); } catch (e) {} state; is "throwingRadix"
|
| +PASS state = null; try { parseInt(throwingString, throwingRadix); } catch (e) {} state; is "throwingString"
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|