| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 package com.google.dart.compiler.parser; | 4 package com.google.dart.compiler.parser; |
| 5 | 5 |
| 6 import com.google.common.base.Joiner; | 6 import com.google.common.base.Joiner; |
| 7 import com.google.dart.compiler.CompilerTestCase; | 7 import com.google.dart.compiler.CompilerTestCase; |
| 8 import com.google.dart.compiler.ast.DartIdentifier; | 8 import com.google.dart.compiler.ast.DartIdentifier; |
| 9 import com.google.dart.compiler.ast.DartMethodDefinition; | 9 import com.google.dart.compiler.ast.DartMethodDefinition; |
| 10 import com.google.dart.compiler.ast.DartNode; | 10 import com.google.dart.compiler.ast.DartNode; |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 public void test_native_onlyCoreLib_method() { | 760 public void test_native_onlyCoreLib_method() { |
| 761 parseExpectErrors( | 761 parseExpectErrors( |
| 762 Joiner.on("\n").join( | 762 Joiner.on("\n").join( |
| 763 "// filler filler filler filler filler filler filler filler filler f
iller", | 763 "// filler filler filler filler filler filler filler filler filler f
iller", |
| 764 "class A {", | 764 "class A {", |
| 765 " factory A() native;", | 765 " factory A() native;", |
| 766 "}", | 766 "}", |
| 767 ""), | 767 ""), |
| 768 errEx(ParserErrorCode.NATIVE_ONLY_CORE_LIB, 3, 15, 6)); | 768 errEx(ParserErrorCode.NATIVE_ONLY_CORE_LIB, 3, 15, 6)); |
| 769 } | 769 } |
| 770 |
| 771 public void test_qualifiedType_inForIn() { |
| 772 parseExpectErrors(Joiner.on("\n").join( |
| 773 "// filler filler filler filler filler filler filler filler filler fille
r", |
| 774 "foo() {", |
| 775 " for (pref.A a in elements) {", |
| 776 " }", |
| 777 "}", |
| 778 "")); |
| 779 } |
| 770 } | 780 } |
| OLD | NEW |