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

Side by Side Diff: dart/compiler/javatests/com/google/dart/corelib/TestSharedTests.java

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
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.
4
5 package com.google.dart.corelib;
6
7 import junit.framework.Test;
8 import junit.framework.TestCase;
9 import junit.framework.TestSuite;
10
11 /**
12 * Test the configuration of SharedTests but without running all the tests.
13 * This test is designed to be run from test.py which normally skips SharedTests .
14 */
15 public class TestSharedTests extends SharedTests {
16
17 public TestSharedTests(Test test) {
18 super(test);
19 }
20
21 public static TestSuite suite() {
22 final TestSuite suite = new TestSuite("Shared Dart tests configuration");
23
24 new SuiteBuilder() {
25 @Override
26 protected TestSuite configurationProblem(TestSuite ignored, String message ) {
27 return super.configurationProblem(suite, message);
28 }
29 }.buildSuite();
30
31 if (suite.countTestCases() == 0) {
32 suite.addTest(new TestCase("configuration is fine") {
33 @Override
34 public void runBare() throws Throwable {
35 }
36 });
37 }
38 return suite;
39 }
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698