| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.all_the_rest_test; | 8 library engine.all_the_rest_test; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 6874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6885 } | 6885 } |
| 6886 | 6886 |
| 6887 void test_assignmentExpression_lhs_throw() { | 6887 void test_assignmentExpression_lhs_throw() { |
| 6888 _assertTrue("a[throw ''] = 0;"); | 6888 _assertTrue("a[throw ''] = 0;"); |
| 6889 } | 6889 } |
| 6890 | 6890 |
| 6891 void test_assignmentExpression_rhs_throw() { | 6891 void test_assignmentExpression_rhs_throw() { |
| 6892 _assertTrue("v = throw '';"); | 6892 _assertTrue("v = throw '';"); |
| 6893 } | 6893 } |
| 6894 | 6894 |
| 6895 void test_await_false() { |
| 6896 _assertFalse("await x;"); |
| 6897 } |
| 6898 |
| 6899 void test_await_throw_true() { |
| 6900 _assertTrue("bool b = await (throw '' || true);"); |
| 6901 } |
| 6902 |
| 6895 void test_binaryExpression_and() { | 6903 void test_binaryExpression_and() { |
| 6896 _assertFalse("a && b;"); | 6904 _assertFalse("a && b;"); |
| 6897 } | 6905 } |
| 6898 | 6906 |
| 6899 void test_binaryExpression_and_lhs() { | 6907 void test_binaryExpression_and_lhs() { |
| 6900 _assertTrue("throw '' && b;"); | 6908 _assertTrue("throw '' && b;"); |
| 6901 } | 6909 } |
| 6902 | 6910 |
| 6903 void test_binaryExpression_and_rhs() { | 6911 void test_binaryExpression_and_rhs() { |
| 6904 _assertTrue("a && (throw '');"); | 6912 _assertTrue("a && (throw '');"); |
| (...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8869 } else { | 8877 } else { |
| 8870 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); | 8878 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); |
| 8871 String actualExternalScriptName = scriptSource.shortName; | 8879 String actualExternalScriptName = scriptSource.shortName; |
| 8872 expect( | 8880 expect( |
| 8873 actualExternalScriptName, | 8881 actualExternalScriptName, |
| 8874 _expectedExternalScriptName, | 8882 _expectedExternalScriptName, |
| 8875 reason: "script $scriptIndex"); | 8883 reason: "script $scriptIndex"); |
| 8876 } | 8884 } |
| 8877 } | 8885 } |
| 8878 } | 8886 } |
| OLD | NEW |