| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 that the compiler can generates code with compile time error according | 5 // Test that the compiler can generates code with compile time error according |
| 6 // to the compiler options. | 6 // to the compiler options. |
| 7 | 7 |
| 8 library dart2js.test.generate_code_with_compile_time_errors; | 8 library dart2js.test.generate_code_with_compile_time_errors; |
| 9 | 9 |
| 10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 expectedCodeGenerated: false, | 79 expectedCodeGenerated: false, |
| 80 expectedOutput: false); | 80 expectedOutput: false); |
| 81 await test( | 81 await test( |
| 82 ['--generate-code-with-compile-time-errors'], | 82 ['--generate-code-with-compile-time-errors'], |
| 83 expectedCodeGenerated: true, | 83 expectedCodeGenerated: true, |
| 84 expectedOutput: true); | 84 expectedOutput: true); |
| 85 await test( | 85 await test( |
| 86 ['--generate-code-with-compile-time-errors', '--test-mode'], | 86 ['--generate-code-with-compile-time-errors', '--test-mode'], |
| 87 expectedCodeGenerated: true, | 87 expectedCodeGenerated: true, |
| 88 expectedOutput: false); | 88 expectedOutput: false); |
| 89 | |
| 90 await test( | |
| 91 ['--use-cps-ir'], | |
| 92 expectedCodeGenerated: false, | |
| 93 expectedOutput: false); | |
| 94 await test( | |
| 95 ['--use-cps-ir', '--test-mode'], | |
| 96 expectedCodeGenerated: false, | |
| 97 expectedOutput: false); | |
| 98 await test( | |
| 99 ['--use-cps-ir', '--generate-code-with-compile-time-errors'], | |
| 100 expectedCodeGenerated: false, | |
| 101 expectedOutput: false, | |
| 102 expectHint: true); | |
| 103 await test( | |
| 104 ['--use-cps-ir', | |
| 105 '--generate-code-with-compile-time-errors', | |
| 106 '--test-mode'], | |
| 107 expectedCodeGenerated: false, | |
| 108 expectedOutput: false, | |
| 109 expectHint: true); | |
| 110 }); | 89 }); |
| 111 } | 90 } |
| OLD | NEW |