| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 // Helper to test compilation equivalence between source and .dill based | 5 // Helper to test compilation equivalence between source and .dill based |
| 6 // compilation. | 6 // compilation. |
| 7 library dart2js.kernel.compile_from_dill_test_helper; | 7 library dart2js.kernel.compile_from_dill_test_helper; |
| 8 | 8 |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 import 'dart:io'; | 10 import 'dart:io'; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'main.dart': ''' | 50 'main.dart': ''' |
| 51 import 'dart:html'; | 51 import 'dart:html'; |
| 52 | 52 |
| 53 foo({named}) => 1; | 53 foo({named}) => 1; |
| 54 bar(a) => !a; | 54 bar(a) => !a; |
| 55 class Class { | 55 class Class { |
| 56 var field; | 56 var field; |
| 57 static var staticField; | 57 static var staticField; |
| 58 | 58 |
| 59 Class(); | 59 Class(); |
| 60 Class.named(this.field); | 60 Class.named(this.field) { |
| 61 staticField = 42; |
| 62 } |
| 61 | 63 |
| 62 method() {} | 64 method() {} |
| 63 } | 65 } |
| 64 | 66 |
| 65 class SubClass extends Class { | 67 class SubClass extends Class { |
| 66 method() { | 68 method() { |
| 67 super.method(); | 69 super.method(); |
| 68 } | 70 } |
| 69 } | 71 } |
| 70 | 72 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; | 297 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; |
| 296 checkSets(map1.keys, map2.keys, 'output', equality); | 298 checkSets(map1.keys, map2.keys, 'output', equality); |
| 297 map1.forEach((String name, BufferedOutputSink output1) { | 299 map1.forEach((String name, BufferedOutputSink output1) { |
| 298 BufferedOutputSink output2 = map2[name]; | 300 BufferedOutputSink output2 = map2[name]; |
| 299 Expect.stringEquals(output1.text, output2.text); | 301 Expect.stringEquals(output1.text, output2.text); |
| 300 }); | 302 }); |
| 301 }); | 303 }); |
| 302 } | 304 } |
| 303 return ResultKind.success; | 305 return ResultKind.success; |
| 304 } | 306 } |
| OLD | NEW |