| OLD | NEW |
| 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('dart:uri'); | 5 #import('dart:uri'); |
| 6 #import('parser_helper.dart'); | 6 #import('parser_helper.dart'); |
| 7 #import("../../../lib/compiler/compiler.dart"); | 7 #import("../../../lib/compiler/compiler.dart"); |
| 8 #import("../../../lib/compiler/implementation/tree/tree.dart"); | 8 #import("../../../lib/compiler/implementation/tree/tree.dart"); |
| 9 | 9 |
| 10 testUnparse(String statement) { | 10 testUnparse(String statement) { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 testUnparse('var x=new List<List<List<List<int>>>>();'); | 97 testUnparse('var x=new List<List<List<List<int>>>>();'); |
| 98 testUnparse('var x=new List<List<List<List<List<int>>>>>();'); | 98 testUnparse('var x=new List<List<List<List<List<int>>>>>();'); |
| 99 } | 99 } |
| 100 | 100 |
| 101 testForLoop() { | 101 testForLoop() { |
| 102 testUnparse('for(;i<100;i++){}'); | 102 testUnparse('for(;i<100;i++){}'); |
| 103 testUnparse('for(i=0;i<100;i++){}'); | 103 testUnparse('for(i=0;i<100;i++){}'); |
| 104 } | 104 } |
| 105 | 105 |
| 106 testEmptyList() { | 106 testEmptyList() { |
| 107 testUnparse('var x= [];'); | 107 testUnparse('var x=[];'); |
| 108 } | 108 } |
| 109 | 109 |
| 110 testClosure() { | 110 testClosure() { |
| 111 testUnparse('var x=(var x)=> x;'); | 111 testUnparse('var x=(var x)=> x;'); |
| 112 } | 112 } |
| 113 | 113 |
| 114 testIndexedOperatorDecl() { | 114 testIndexedOperatorDecl() { |
| 115 testUnparseMember('operator[](int i)=> null;'); | 115 testUnparseMember('operator[](int i)=> null;'); |
| 116 testUnparseMember('operator[]=(int i,int j)=> null;'); | 116 testUnparseMember('operator[]=(int i,int j)=> null;'); |
| 117 } | 117 } |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 testFactoryConstructor(); | 426 testFactoryConstructor(); |
| 427 testTopLevelField(); | 427 testTopLevelField(); |
| 428 testAbstractClass(); | 428 testAbstractClass(); |
| 429 testConflictLibraryClassRename(); | 429 testConflictLibraryClassRename(); |
| 430 testNoConflictSendsRename(); | 430 testNoConflictSendsRename(); |
| 431 testConflictSendsRename(); | 431 testConflictSendsRename(); |
| 432 // Disabled with revert of https://chromiumcodereview.appspot.com/10824062/ | 432 // Disabled with revert of https://chromiumcodereview.appspot.com/10824062/ |
| 433 // testDefaultClassWithArgs(); | 433 // testDefaultClassWithArgs(); |
| 434 testClassExtendsWithArgs(); | 434 testClassExtendsWithArgs(); |
| 435 } | 435 } |
| OLD | NEW |