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 4025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4036 | 4036 |
4037 void | 4037 void |
4038 test_instanceCreationExpression_fieldFormalParameter_unnamedOptionalWithou
tDefault() { | 4038 test_instanceCreationExpression_fieldFormalParameter_unnamedOptionalWithou
tDefault() { |
4039 _checkInstanceCreationOptionalParams(true, false, false); | 4039 _checkInstanceCreationOptionalParams(true, false, false); |
4040 } | 4040 } |
4041 | 4041 |
4042 void test_instanceCreationExpression_implicitSuper() { | 4042 void test_instanceCreationExpression_implicitSuper() { |
4043 CompilationUnit compilationUnit = resolveSource(r''' | 4043 CompilationUnit compilationUnit = resolveSource(r''' |
4044 const foo = const B(4); | 4044 const foo = const B(4); |
4045 class A { | 4045 class A { |
4046 const A() : x(3); | 4046 const A() : x = 3; |
4047 final int x; | 4047 final int x; |
4048 } | 4048 } |
4049 class B extends A { | 4049 class B extends A { |
4050 const B(this.y); | 4050 const B(this.y); |
4051 final int y; | 4051 final int y; |
4052 }'''); | 4052 }'''); |
4053 EvaluationResultImpl result = | 4053 EvaluationResultImpl result = |
4054 _evaluateInstanceCreationExpression(compilationUnit, "foo"); | 4054 _evaluateInstanceCreationExpression(compilationUnit, "foo"); |
4055 Map<String, DartObjectImpl> fields = _assertType(result, "B"); | 4055 Map<String, DartObjectImpl> fields = _assertType(result, "B"); |
4056 expect(fields, hasLength(2)); | 4056 expect(fields, hasLength(2)); |
(...skipping 7006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11063 Source scriptSource = externalScript.scriptSource; | 11063 Source scriptSource = externalScript.scriptSource; |
11064 if (_expectedExternalScriptName == null) { | 11064 if (_expectedExternalScriptName == null) { |
11065 expect(scriptSource, isNull, reason: "script $scriptIndex"); | 11065 expect(scriptSource, isNull, reason: "script $scriptIndex"); |
11066 } else { | 11066 } else { |
11067 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); | 11067 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); |
11068 String actualExternalScriptName = scriptSource.shortName; | 11068 String actualExternalScriptName = scriptSource.shortName; |
11069 expect(actualExternalScriptName, _expectedExternalScriptName, reason: "scr
ipt $scriptIndex"); | 11069 expect(actualExternalScriptName, _expectedExternalScriptName, reason: "scr
ipt $scriptIndex"); |
11070 } | 11070 } |
11071 } | 11071 } |
11072 } | 11072 } |
OLD | NEW |