Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3692)

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java

Issue 244183002: Add ClassDeclaration/ClassTypeAlias.isAbstract() and use them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: forgotten class Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/angular/TestAll.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java
similarity index 55%
copy from editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/angular/TestAll.java
copy to editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java
index 2f8282ba0bd04916725e65be689353c9714cb585..ad8555d2509ab7126d4c25e3fdd5d258e73c2cfd 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/angular/TestAll.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ClassTypeAliasTest.java
@@ -11,17 +11,16 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.google.dart.engine.element.angular;
+package com.google.dart.engine.ast;
-import com.google.dart.engine.ExtendedTestSuite;
+import com.google.dart.engine.parser.ParserTestCase;
+import com.google.dart.engine.scanner.Keyword;
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import static com.google.dart.engine.ast.AstFactory.classTypeAlias;
-public class TestAll {
- public static Test suite() {
- TestSuite suite = new ExtendedTestSuite("Tests in " + TestAll.class.getPackage().getName());
- suite.addTestSuite(AngularPropertyKindTest.class);
- return suite;
+public class ClassTypeAliasTest extends ParserTestCase {
+ public void test_isAbstract() throws Exception {
+ assertFalse(classTypeAlias("A", null, null, null, null, null).isAbstract());
+ assertTrue(classTypeAlias("B", null, Keyword.ABSTRACT, null, null, null).isAbstract());
}
}

Powered by Google App Engine
This is Rietveld 408576698