| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011, the Dart project authors. | 2 * Copyright (c) 2011, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
| 12 * the License. | 12 * the License. |
| 13 */ | 13 */ |
| 14 package com.google.dart.tools.core.internal.compiler; | 14 package com.google.dart.tools.core.internal.compiler; |
| 15 | 15 |
| 16 import com.google.dart.compiler.DartCompilationError; | 16 import com.google.dart.compiler.DartCompilationError; |
| 17 import com.google.dart.compiler.DartCompilerListener; | 17 import com.google.dart.compiler.DartCompilerListener; |
| 18 import com.google.dart.compiler.Source; | |
| 19 import com.google.dart.compiler.ast.DartUnit; | 18 import com.google.dart.compiler.ast.DartUnit; |
| 20 | 19 |
| 21 import static org.junit.Assert.assertEquals; | 20 import static org.junit.Assert.assertEquals; |
| 22 import static org.junit.Assert.assertTrue; | 21 import static org.junit.Assert.assertTrue; |
| 23 | 22 |
| 24 /** | 23 /** |
| 25 * A listener for validating that zero or more specific errors occurred during a
compilation. | 24 * A listener for validating that zero or more specific errors occurred during a
compilation. |
| 26 */ | 25 */ |
| 27 public class TestCompilerListener extends DartCompilerListener { | 26 public class TestCompilerListener extends DartCompilerListener { |
| 28 private String[] messages; | 27 private String[] messages; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 73 |
| 75 @Override | 74 @Override |
| 76 public void typeError(DartCompilationError event) { | 75 public void typeError(DartCompilationError event) { |
| 77 compilationError(event); | 76 compilationError(event); |
| 78 } | 77 } |
| 79 | 78 |
| 80 @Override | 79 @Override |
| 81 public void unitCompiled(DartUnit unit) { | 80 public void unitCompiled(DartUnit unit) { |
| 82 } | 81 } |
| 83 } | 82 } |
| OLD | NEW |