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

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

Issue 9969043: Adds Junit tests in dartc back into test.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Some Junit tests have broken in interleaving patches Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698