Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: test/preparser/strict-identifiers.pyt

Issue 25277003: Remove obsolete preparser binary and tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Preserve test suite. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/preparser/preparser.status ('k') | test/preparser/testcfg.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 label_normal = Template("label-normal-$id", """ 141 label_normal = Template("label-normal-$id", """
142 $id: ''; 142 $id: '';
143 """) 143 """)
144 144
145 label_strict = StrictTemplate("label-strict-$id", """ 145 label_strict = StrictTemplate("label-strict-$id", """
146 $id: ''; 146 $id: '';
147 """) 147 """)
148 148
149 break_normal = Template("break-normal-$id", """ 149 break_normal = Template("break-normal-$id", """
150 for (;;) { 150 $id: for (;false;) {
151 break $id; 151 break $id;
152 } 152 }
153 """) 153 """)
154 154
155 break_strict = StrictTemplate("break-strict-$id", """ 155 break_strict = StrictTemplate("break-strict-$id", """
156 for (;;) { 156 $id: for (;false;) {
157 break $id; 157 break $id;
158 } 158 }
159 """) 159 """)
160 160
161 continue_normal = Template("continue-normal-$id", """ 161 continue_normal = Template("continue-normal-$id", """
162 for (;;) { 162 $id: for (;false;) {
163 continue $id; 163 continue $id;
164 } 164 }
165 """) 165 """)
166 166
167 continue_strict = StrictTemplate("continue-strict-$id", """ 167 continue_strict = StrictTemplate("continue-strict-$id", """
168 for (;;) { 168 $id: for (;false;) {
169 continue $id; 169 continue $id;
170 } 170 }
171 """) 171 """)
172 172
173 non_strict_use = Template("nonstrict-$id", """ 173 non_strict_use = Template("nonstrict-$id", """
174 var $id = 42; 174 var $id = 42;
175 $id++; 175 $id++;
176 $id--; 176 $id--;
177 ++$id; 177 ++$id;
178 --$id; 178 --$id;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 else: 279 else:
280 label_strict({"id": reserved_word}, message) 280 label_strict({"id": reserved_word}, message)
281 break_strict({"id": reserved_word}, message) 281 break_strict({"id": reserved_word}, message)
282 continue_strict({"id": reserved_word}, message) 282 continue_strict({"id": reserved_word}, message)
283 283
284 284
285 # Future reserved words in strict mode behave like normal identifiers 285 # Future reserved words in strict mode behave like normal identifiers
286 # in a non strict context. 286 # in a non strict context.
287 for reserved_word in strict_reserved_words: 287 for reserved_word in strict_reserved_words:
288 non_strict_use({"id": reserved_word}, None) 288 non_strict_use({"id": reserved_word}, None)
OLDNEW
« no previous file with comments | « test/preparser/preparser.status ('k') | test/preparser/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698