| OLD | NEW | 
|---|
| 1 // Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Test of element diff. | 5 /// Test of element diff. | 
| 6 library trydart.diff_test; | 6 library trydart.diff_test; | 
| 7 | 7 | 
| 8 import 'dart:async' show | 8 import 'dart:async' show | 
| 9     Future; | 9     Future; | 
| 10 | 10 | 
| 11 import 'package:expect/expect.dart' show | 11 import 'package:expect/expect.dart' show | 
| 12     Expect; | 12     Expect; | 
| 13 | 13 | 
| 14 import 'package:async_helper/async_helper.dart' show | 14 import 'package:async_helper/async_helper.dart' show | 
| 15     asyncTest; | 15     asyncTest; | 
| 16 | 16 | 
| 17 import 'package:compiler/src/dart2jslib.dart' show | 17 import 'package:compiler/src/compiler.dart' show | 
| 18     Compiler; | 18     Compiler; | 
| 19 | 19 | 
| 20 import 'package:compiler/src/io/source_file.dart' show | 20 import 'package:compiler/src/io/source_file.dart' show | 
| 21     StringSourceFile; | 21     StringSourceFile; | 
| 22 | 22 | 
| 23 import 'package:compiler/src/elements/elements.dart' show | 23 import 'package:compiler/src/elements/elements.dart' show | 
| 24     Element, | 24     Element, | 
| 25     LibraryElement; | 25     LibraryElement; | 
| 26 | 26 | 
| 27 import 'package:compiler/src/script.dart' show | 27 import 'package:compiler/src/script.dart' show | 
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 117         expectedBeforeName, elementNameOrNull(difference.before)); | 117         expectedBeforeName, elementNameOrNull(difference.before)); | 
| 118     Expect.stringEquals(expectedAfterName, elementNameOrNull(difference.after)); | 118     Expect.stringEquals(expectedAfterName, elementNameOrNull(difference.after)); | 
| 119     print(difference); | 119     print(difference); | 
| 120   } | 120   } | 
| 121   Expect.isFalse(iterator.moveNext()); | 121   Expect.isFalse(iterator.moveNext()); | 
| 122 } | 122 } | 
| 123 | 123 | 
| 124 void main() { | 124 void main() { | 
| 125   asyncTest(() => Future.forEach(TEST_DATA, testData)); | 125   asyncTest(() => Future.forEach(TEST_DATA, testData)); | 
| 126 } | 126 } | 
| OLD | NEW | 
|---|