| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 8 import 'package:analyzer/src/dart/analysis/driver.dart'; | 8 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 10 | 10 |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 '''); | 1313 '''); |
| 1314 checkElementText( | 1314 checkElementText( |
| 1315 library, | 1315 library, |
| 1316 r''' | 1316 r''' |
| 1317 int vModuloIntInt; | 1317 int vModuloIntInt; |
| 1318 double vModuloIntDouble; | 1318 double vModuloIntDouble; |
| 1319 int vMultiplyIntInt; | 1319 int vMultiplyIntInt; |
| 1320 double vMultiplyIntDouble; | 1320 double vMultiplyIntDouble; |
| 1321 double vMultiplyDoubleInt; | 1321 double vMultiplyDoubleInt; |
| 1322 double vMultiplyDoubleDouble; | 1322 double vMultiplyDoubleDouble; |
| 1323 num vDivideIntInt; | 1323 double vDivideIntInt; |
| 1324 num vDivideIntDouble; | 1324 double vDivideIntDouble; |
| 1325 double vDivideDoubleInt; | 1325 double vDivideDoubleInt; |
| 1326 double vDivideDoubleDouble; | 1326 double vDivideDoubleDouble; |
| 1327 int vFloorDivide; | 1327 int vFloorDivide; |
| 1328 '''); | 1328 '''); |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 @failingTest | 1331 @failingTest |
| 1332 test_initializer_onlyLeft() async { | 1332 test_initializer_onlyLeft() async { |
| 1333 var library = await _encodeDecodeLibrary(r''' | 1333 var library = await _encodeDecodeLibrary(r''' |
| 1334 var a = 1; | 1334 var a = 1; |
| (...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2799 | 2799 |
| 2800 Future<LibraryElement> _encodeDecodeLibrary(String text) async { | 2800 Future<LibraryElement> _encodeDecodeLibrary(String text) async { |
| 2801 String path = _p('/test.dart'); | 2801 String path = _p('/test.dart'); |
| 2802 provider.newFile(path, text); | 2802 provider.newFile(path, text); |
| 2803 UnitElementResult result = await driver.getUnitElement(path); | 2803 UnitElementResult result = await driver.getUnitElement(path); |
| 2804 return result.element.library; | 2804 return result.element.library; |
| 2805 } | 2805 } |
| 2806 | 2806 |
| 2807 String _p(String path) => provider.convertPath(path); | 2807 String _p(String path) => provider.convertPath(path); |
| 2808 } | 2808 } |
| OLD | NEW |