OLD | NEW |
(Empty) | |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. |
| 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 # |
| 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions |
| 6 # are met: |
| 7 # 1. Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. |
| 9 # 2. Redistributions in binary form must reproduce the above copyright |
| 10 # notice, this list of conditions and the following disclaimer in the |
| 11 # documentation and/or other materials provided with the distribution. |
| 12 # |
| 13 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY |
| 14 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 16 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 17 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 18 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 19 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 20 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 21 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 22 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 |
| 24 KDE JS Test |
| 25 |
| 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 27 |
| 28 |
| 29 PASS h.charCodeAt(1) is 239 |
| 30 PASS u.charCodeAt(1) is 4660 |
| 31 PASS escape(h) is 'a%EFc' |
| 32 PASS escape(u) is 'a%u1234c' |
| 33 PASS escape(z) is '%00' |
| 34 PASS unescape(escape(h)) is h |
| 35 PASS unescape(escape(u)) is u |
| 36 PASS unescape(escape(z)) is z |
| 37 PASS isNaN(NaN) is true |
| 38 PASS isNaN('NaN') is true |
| 39 PASS isNaN('1') is false |
| 40 PASS isFinite(1) is true |
| 41 PASS isFinite('1') is true |
| 42 PASS isFinite('a') is false |
| 43 PASS isNaN(parseInt("Hello", 8)) is true |
| 44 PASS isNaN(parseInt("FFF", 10)) is true |
| 45 PASS isNaN(parseInt(".5", 10)) is true |
| 46 PASS isFinite(Infinity) is false |
| 47 PASS isFinite('Infinity') is false |
| 48 PASS isNaN(parseInt()) is true |
| 49 PASS isNaN(parseInt('')) is true |
| 50 PASS isNaN(parseInt(' ')) is true |
| 51 PASS isNaN(parseInt('a')) is true |
| 52 PASS parseInt(1) is 1 |
| 53 PASS parseInt(1234567890123456) is 1234567890123456 |
| 54 PASS parseInt(1.2) is 1 |
| 55 PASS parseInt(' 2.3') is 2 |
| 56 PASS parseInt('0x10') is 16 |
| 57 PASS parseInt('11', 0) is 11 |
| 58 PASS parseInt('F', 16) is 15 |
| 59 PASS isNaN(parseInt('10', 40)) is true |
| 60 PASS parseInt('3x') is 3 |
| 61 PASS parseInt('3 x') is 3 |
| 62 PASS isNaN(parseInt('Infinity')) is true |
| 63 PASS parseInt("15") is 15 |
| 64 PASS parseInt("015") is 15 |
| 65 PASS parseInt("0xf") is 15 |
| 66 PASS parseInt("15", 0) is 15 |
| 67 PASS parseInt("15", 10) is 15 |
| 68 PASS parseInt("F", 16) is 15 |
| 69 PASS parseInt("17", 8) is 15 |
| 70 PASS parseInt("15.99", 10) is 15 |
| 71 PASS parseInt("FXX123", 16) is 15 |
| 72 PASS parseInt("1111", 2) is 15 |
| 73 PASS parseInt("15*3", 10) is 15 |
| 74 PASS parseInt("0x7", 10) is 0 |
| 75 PASS parseInt("1x7", 10) is 1 |
| 76 PASS isNaN(parseFloat()) is true |
| 77 PASS isNaN(parseFloat('')) is true |
| 78 PASS isNaN(parseFloat(' ')) is true |
| 79 PASS isNaN(parseFloat('a')) is true |
| 80 PASS parseFloat(1) is 1 |
| 81 PASS parseFloat(' 2.3') is 2.3 |
| 82 PASS parseFloat('3.1 x', 3) is 3.1 |
| 83 PASS parseFloat('3.1x', 3) is 3.1 |
| 84 PASS isFinite(parseFloat('Infinity')) is false |
| 85 PASS delete NaN is false |
| 86 PASS delete Infinity is false |
| 87 PASS delete undefined is false |
| 88 PASS successfullyParsed is true |
| 89 |
| 90 TEST COMPLETE |
| 91 |
OLD | NEW |