| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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 import com.google.dart.runner.V8Launcher; | 9 import com.google.dart.runner.V8Launcher; |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * listed all the tests. Then right click on the desired test and select Run or
Debug. | 29 * listed all the tests. Then right click on the desired test and select Run or
Debug. |
| 30 */ | 30 */ |
| 31 public class SharedTests extends TestSetup { | 31 public class SharedTests extends TestSetup { |
| 32 private final static String TEST_PY = | 32 private final static String TEST_PY = |
| 33 System.getProperty("com.google.dart.corelib.SharedTests.test_py", "../tool
s/test.py"); | 33 System.getProperty("com.google.dart.corelib.SharedTests.test_py", "../tool
s/test.py"); |
| 34 | 34 |
| 35 private static final String[] listTests = { | 35 private static final String[] listTests = { |
| 36 TEST_PY, | 36 TEST_PY, |
| 37 "--component=dartc", | 37 "--component=dartc", |
| 38 "--mode=release", | 38 "--mode=release", |
| 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(); |
| 47 } | 48 } |
| 48 | 49 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 suite.addTest(new TestCase("Configuration problem") { | 105 suite.addTest(new TestCase("Configuration problem") { |
| 105 @Override | 106 @Override |
| 106 public void runBare() throws Throwable { | 107 public void runBare() throws Throwable { |
| 107 fail(message); | 108 fail(message); |
| 108 } | 109 } |
| 109 }); | 110 }); |
| 110 return suite; | 111 return suite; |
| 111 } | 112 } |
| 112 } | 113 } |
| 113 } | 114 } |
| OLD | NEW |