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

Side by Side Diff: tests/compiler/dart2js/unparser_test.dart

Issue 21511003: Support symbol literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 3 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'parser_helper.dart'; 6 import 'parser_helper.dart';
7 import 'mock_compiler.dart'; 7 import 'mock_compiler.dart';
8 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart';
9 9
10 testUnparse(String statement) { 10 testUnparse(String statement) {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 testUnparseParameters( 334 testUnparseParameters(
335 ["foo()", "void bar()", "int baz(a)", "int boz(int a,int b)=null"]); 335 ["foo()", "void bar()", "int baz(a)", "int boz(int a,int b)=null"]);
336 testUnparseParameters( 336 testUnparseParameters(
337 ["this.foo()", 337 ["this.foo()",
338 //"void this.bar()", // Commented out due to Issue 7852 338 //"void this.bar()", // Commented out due to Issue 7852
339 //"int this.baz(a)", // Commented out due to Issue 7852 339 //"int this.baz(a)", // Commented out due to Issue 7852
340 //"int this.boz(int a,int b)=null" // Commented out due to Issue 7852 340 //"int this.boz(int a,int b)=null" // Commented out due to Issue 7852
341 ]); 341 ]);
342 } 342 }
343 343
344 testSymbolLiterals() {
345 testUnparse("#+;");
346 testUnparse("#-;");
347 testUnparse("#*;");
348 testUnparse("#/;");
349 testUnparse("#~/;");
350 testUnparse("#%;");
351 testUnparse("#<;");
352 testUnparse("#<=;");
353 testUnparse("#>;");
354 testUnparse("#>=;");
355 testUnparse("#==;");
356 testUnparse("#&;");
357 testUnparse("#|;");
358 testUnparse("#^;");
359
360 testUnparse("#a;");
361 testUnparse("#a.b;");
362 testUnparse("#a.b.c;");
363 testUnparse("#aa.bb.cc.dd;");
364 }
365
344 main() { 366 main() {
345 testSignedConstants(); 367 testSignedConstants();
346 testGenericTypes(); 368 testGenericTypes();
347 testForLoop(); 369 testForLoop();
348 testEmptyList(); 370 testEmptyList();
349 testClosure(); 371 testClosure();
350 testIndexedOperatorDecl(); 372 testIndexedOperatorDecl();
351 testNativeMethods(); 373 testNativeMethods();
352 testPrefixIncrements(); 374 testPrefixIncrements();
353 testConstModifier(); 375 testConstModifier();
354 testSimpleObjectInstantiation(); 376 testSimpleObjectInstantiation();
355 testLibraryName(); 377 testLibraryName();
356 testImport(); 378 testImport();
357 testExport(); 379 testExport();
358 testPart(); 380 testPart();
359 testPartOf(); 381 testPartOf();
360 testCombinators(); 382 testCombinators();
361 testRedirectingFactoryConstructors(); 383 testRedirectingFactoryConstructors();
362 testClassDeclarations(); 384 testClassDeclarations();
363 testMixinApplications(); 385 testMixinApplications();
364 testParameters(); 386 testParameters();
387 testSymbolLiterals();
365 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698