| OLD | NEW |
| (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 } | |
| OLD | NEW |