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

Side by Side Diff: LayoutTests/fast/js/js-continue-break-restrictions-expected.txt

Issue 14146002: Remove all generic expected results for which a generic Chromium expected result exists (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
OLDNEW
(Empty)
1 Verify that invalid continue and break statements are handled correctly
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS L:{true;break L;false} is true
7 PASS if (0) { L:{ break; } } threw exception SyntaxError: 'break' is only valid inside a switch or loop statement.
8 PASS if (0) { L:{ continue L; } } threw exception SyntaxError: 'continue' is onl y valid inside a loop statement.
9 PASS if (0) { L:{ continue; } } threw exception SyntaxError: 'continue' is only valid inside a loop statement.
10 PASS if (0) { switch (1) { case 1: continue; } } threw exception SyntaxError: 'c ontinue' is only valid inside a loop statement.
11 PASS A:L:{true;break L;false} is true
12 PASS if (0) { A:L:{ break; } } threw exception SyntaxError: 'break' is only vali d inside a switch or loop statement.
13 PASS if (0) { A:L:{ continue L; } } threw exception SyntaxError: 'continue' is o nly valid inside a loop statement.
14 PASS if (0) { A:L:{ continue; } } threw exception SyntaxError: 'continue' is onl y valid inside a loop statement.
15 PASS L:A:{true;break L;false} is true
16 PASS if (0) { L:A:{ break; } } threw exception SyntaxError: 'break' is only vali d inside a switch or loop statement.
17 PASS if (0) { L:A:{ continue L; } } threw exception SyntaxError: 'continue' is o nly valid inside a loop statement.
18 PASS if (0) { L:A:{ continue; } } threw exception SyntaxError: 'continue' is onl y valid inside a loop statement.
19 PASS if(0){ L:for(;;) continue L; } is undefined.
20 PASS if(0){ L:A:for(;;) continue L; } is undefined.
21 PASS if(0){ A:L:for(;;) continue L; } is undefined.
22 PASS if(0){ A:for(;;) L:continue L; } threw exception SyntaxError: 'continue' is only valid inside a loop statement.
23 PASS if(0){ L:for(;;) A:continue L; } is undefined.
24 PASS if(0){ L:do continue L; while(0); } is undefined.
25 PASS if(0){ L:A:do continue L; while(0); } is undefined.
26 PASS if(0){ A:L:do continue L; while(0);} is undefined.
27 PASS if(0){ A:do L:continue L; while(0); } threw exception SyntaxError: 'continu e' is only valid inside a loop statement.
28 PASS if(0){ L:do A:continue L; while(0); } is undefined.
29 PASS if(0){ L:while(0) continue L; } is undefined.
30 PASS if(0){ L:A:while(0) continue L; } is undefined.
31 PASS if(0){ A:L:while(0) continue L; } is undefined.
32 PASS if(0){ A:while(0) L:continue L; } threw exception SyntaxError: 'continue' i s only valid inside a loop statement.
33 PASS if(0){ L:while(0) A:continue L; } is undefined.
34 PASS successfullyParsed is true
35
36 TEST COMPLETE
37
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/invalid-syntax-for-function-expected.txt ('k') | LayoutTests/fast/js/kde/StringObject-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698