| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package com.google.dart.corelib; | 5 package com.google.dart.corelib; |
| 6 | 6 |
| 7 import com.google.common.io.CharStreams; | 7 import com.google.common.io.CharStreams; |
| 8 import com.google.common.io.LineReader; | 8 import com.google.common.io.LineReader; |
| 9 | 9 |
| 10 import junit.extensions.TestSetup; | 10 import junit.extensions.TestSetup; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * <p> | 26 * <p> |
| 27 * If you just want to run a single test, launch this class as a JUnit test and
stop it once it has | 27 * If you just want to run a single test, launch this class as a JUnit test and
stop it once it has |
| 28 * listed all the tests. Then right click on the desired test and select Run or
Debug. | 28 * listed all the tests. Then right click on the desired test and select Run or
Debug. |
| 29 */ | 29 */ |
| 30 public class SharedTests extends TestSetup { | 30 public class SharedTests extends TestSetup { |
| 31 private final static String TEST_PY = | 31 private final static String TEST_PY = |
| 32 System.getProperty("com.google.dart.corelib.SharedTests.test_py", "../tool
s/test.py"); | 32 System.getProperty("com.google.dart.corelib.SharedTests.test_py", "../tool
s/test.py"); |
| 33 | 33 |
| 34 private static final String[] listTests = { | 34 private static final String[] listTests = { |
| 35 TEST_PY, | 35 TEST_PY, |
| 36 "--component=dartc", | 36 "--compiler=dartc", |
| 37 "--runtime=none", |
| 37 "--mode=release", | 38 "--mode=release", |
| 38 "--progress=silent", | 39 "--progress=silent", |
| 39 "--list"}; | 40 "--list"}; |
| 40 | 41 |
| 41 public SharedTests(Test test) { | 42 public SharedTests(Test test) { |
| 42 super(test); | 43 super(test); |
| 43 } | 44 } |
| 44 | 45 |
| 45 public static TestSuite suite() { | 46 public static TestSuite suite() { |
| 46 return new SuiteBuilder().buildSuite(); | 47 return new SuiteBuilder().buildSuite(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 suite.addTest(new TestCase("Configuration problem") { | 99 suite.addTest(new TestCase("Configuration problem") { |
| 99 @Override | 100 @Override |
| 100 public void runBare() throws Throwable { | 101 public void runBare() throws Throwable { |
| 101 fail(message); | 102 fail(message); |
| 102 } | 103 } |
| 103 }); | 104 }); |
| 104 return suite; | 105 return suite; |
| 105 } | 106 } |
| 106 } | 107 } |
| 107 } | 108 } |
| OLD | NEW |