OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, 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.engine.element.angular; | 14 package com.google.dart.engine.ast; |
15 | 15 |
16 import com.google.dart.engine.ExtendedTestSuite; | 16 import com.google.dart.engine.parser.ParserTestCase; |
| 17 import com.google.dart.engine.scanner.Keyword; |
17 | 18 |
18 import junit.framework.Test; | 19 import static com.google.dart.engine.ast.AstFactory.classTypeAlias; |
19 import junit.framework.TestSuite; | |
20 | 20 |
21 public class TestAll { | 21 public class ClassTypeAliasTest extends ParserTestCase { |
22 public static Test suite() { | 22 public void test_isAbstract() throws Exception { |
23 TestSuite suite = new ExtendedTestSuite("Tests in " + TestAll.class.getPacka
ge().getName()); | 23 assertFalse(classTypeAlias("A", null, null, null, null, null).isAbstract()); |
24 suite.addTestSuite(AngularPropertyKindTest.class); | 24 assertTrue(classTypeAlias("B", null, Keyword.ABSTRACT, null, null, null).isA
bstract()); |
25 return suite; | |
26 } | 25 } |
27 } | 26 } |
OLD | NEW |