| 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 3913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3924 JUnitTestCase.assertTrue(result.isValid); | 3924 JUnitTestCase.assertTrue(result.isValid); |
| 3925 DartObject value = result.value; | 3925 DartObject value = result.value; |
| 3926 JUnitTestCase.assertEquals("int", value.type.name); | 3926 JUnitTestCase.assertEquals("int", value.type.name); |
| 3927 JUnitTestCase.assertEquals(expectedValue, value.intValue); | 3927 JUnitTestCase.assertEquals(expectedValue, value.intValue); |
| 3928 } | 3928 } |
| 3929 | 3929 |
| 3930 void _assertValue4(String expectedValue, String contents) { | 3930 void _assertValue4(String expectedValue, String contents) { |
| 3931 EvaluationResult result = _getExpressionValue(contents); | 3931 EvaluationResult result = _getExpressionValue(contents); |
| 3932 DartObject value = result.value; | 3932 DartObject value = result.value; |
| 3933 JUnitTestCase.assertNotNull(value); | 3933 JUnitTestCase.assertNotNull(value); |
| 3934 InterfaceType type = value.type; | 3934 ParameterizedType type = value.type; |
| 3935 JUnitTestCase.assertNotNull(type); | 3935 JUnitTestCase.assertNotNull(type); |
| 3936 JUnitTestCase.assertEquals("String", type.name); | 3936 JUnitTestCase.assertEquals("String", type.name); |
| 3937 JUnitTestCase.assertEquals(expectedValue, value.stringValue); | 3937 JUnitTestCase.assertEquals(expectedValue, value.stringValue); |
| 3938 } | 3938 } |
| 3939 | 3939 |
| 3940 EvaluationResult _getExpressionValue(String contents) { | 3940 EvaluationResult _getExpressionValue(String contents) { |
| 3941 Source source = addSource("var x = ${contents};"); | 3941 Source source = addSource("var x = ${contents};"); |
| 3942 LibraryElement library = resolve(source); | 3942 LibraryElement library = resolve(source); |
| 3943 CompilationUnit unit = | 3943 CompilationUnit unit = |
| 3944 analysisContext.resolveCompilationUnit(source, library); | 3944 analysisContext.resolveCompilationUnit(source, library); |
| (...skipping 11110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15055 } else { | 15055 } else { |
| 15056 JUnitTestCase.assertNotNullMsg("script ${scriptIndex}", scriptSource); | 15056 JUnitTestCase.assertNotNullMsg("script ${scriptIndex}", scriptSource); |
| 15057 String actualExternalScriptName = scriptSource.shortName; | 15057 String actualExternalScriptName = scriptSource.shortName; |
| 15058 JUnitTestCase.assertEqualsMsg( | 15058 JUnitTestCase.assertEqualsMsg( |
| 15059 "script ${scriptIndex}", | 15059 "script ${scriptIndex}", |
| 15060 _expectedExternalScriptName, | 15060 _expectedExternalScriptName, |
| 15061 actualExternalScriptName); | 15061 actualExternalScriptName); |
| 15062 } | 15062 } |
| 15063 } | 15063 } |
| 15064 } | 15064 } |
| OLD | NEW |