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 This test verifies that keywords and reserved words match those specified in ES5
section 7.6. |
| 25 |
| 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 27 |
| 28 |
| 29 PASS classifyIdentifier("x") is "identifier" |
| 30 PASS classifyIdentifier("id") is "identifier" |
| 31 PASS classifyIdentifier("identifier") is "identifier" |
| 32 PASS classifyIdentifier("keyword") is "identifier" |
| 33 PASS classifyIdentifier("strict") is "identifier" |
| 34 PASS classifyIdentifier("use") is "identifier" |
| 35 PASS classifyIdentifier("abstract") is "identifier" |
| 36 PASS classifyIdentifier("boolean") is "identifier" |
| 37 PASS classifyIdentifier("byte") is "identifier" |
| 38 PASS classifyIdentifier("char") is "identifier" |
| 39 PASS classifyIdentifier("double") is "identifier" |
| 40 PASS classifyIdentifier("final") is "identifier" |
| 41 PASS classifyIdentifier("float") is "identifier" |
| 42 PASS classifyIdentifier("goto") is "identifier" |
| 43 PASS classifyIdentifier("int") is "identifier" |
| 44 PASS classifyIdentifier("long") is "identifier" |
| 45 PASS classifyIdentifier("native") is "identifier" |
| 46 PASS classifyIdentifier("short") is "identifier" |
| 47 PASS classifyIdentifier("synchronized") is "identifier" |
| 48 PASS classifyIdentifier("throws") is "identifier" |
| 49 PASS classifyIdentifier("transient") is "identifier" |
| 50 PASS classifyIdentifier("volatile") is "identifier" |
| 51 PASS classifyIdentifier("break") is "keyword" |
| 52 PASS classifyIdentifier("case") is "keyword" |
| 53 PASS classifyIdentifier("catch") is "keyword" |
| 54 PASS classifyIdentifier("continue") is "keyword" |
| 55 PASS classifyIdentifier("debugger") is "keyword" |
| 56 PASS classifyIdentifier("default") is "keyword" |
| 57 PASS classifyIdentifier("delete") is "keyword" |
| 58 PASS classifyIdentifier("do") is "keyword" |
| 59 PASS classifyIdentifier("else") is "keyword" |
| 60 PASS classifyIdentifier("finally") is "keyword" |
| 61 PASS classifyIdentifier("for") is "keyword" |
| 62 PASS classifyIdentifier("function") is "keyword" |
| 63 PASS classifyIdentifier("if") is "keyword" |
| 64 PASS classifyIdentifier("in") is "keyword" |
| 65 PASS classifyIdentifier("instanceof") is "keyword" |
| 66 PASS classifyIdentifier("new") is "keyword" |
| 67 PASS classifyIdentifier("return") is "keyword" |
| 68 PASS classifyIdentifier("switch") is "keyword" |
| 69 PASS classifyIdentifier("this") is "keyword" |
| 70 PASS classifyIdentifier("throw") is "keyword" |
| 71 PASS classifyIdentifier("try") is "keyword" |
| 72 PASS classifyIdentifier("typeof") is "keyword" |
| 73 PASS classifyIdentifier("var") is "keyword" |
| 74 PASS classifyIdentifier("void") is "keyword" |
| 75 PASS classifyIdentifier("while") is "keyword" |
| 76 PASS classifyIdentifier("with") is "keyword" |
| 77 PASS classifyIdentifier("class") is "keyword" |
| 78 PASS classifyIdentifier("const") is "keyword" |
| 79 PASS classifyIdentifier("enum") is "keyword" |
| 80 PASS classifyIdentifier("export") is "keyword" |
| 81 PASS classifyIdentifier("extends") is "keyword" |
| 82 PASS classifyIdentifier("import") is "keyword" |
| 83 PASS classifyIdentifier("super") is "keyword" |
| 84 PASS classifyIdentifier("implements") is "strict" |
| 85 PASS classifyIdentifier("interface") is "strict" |
| 86 PASS classifyIdentifier("let") is "strict" |
| 87 PASS classifyIdentifier("package") is "strict" |
| 88 PASS classifyIdentifier("private") is "strict" |
| 89 PASS classifyIdentifier("protected") is "strict" |
| 90 PASS classifyIdentifier("public") is "strict" |
| 91 PASS classifyIdentifier("static") is "strict" |
| 92 PASS classifyIdentifier("yield") is "strict" |
| 93 PASS successfullyParsed is true |
| 94 |
| 95 TEST COMPLETE |
| 96 |
OLD | NEW |