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

Unified Diff: tests/standalone/src/ProcessInvalidArgumentsTest.dart

Issue 8416052: Verify that user classes/interfaces do not extend/implement any of bool, num, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/src/ProcessInvalidArgumentsTest.dart
===================================================================
--- tests/standalone/src/ProcessInvalidArgumentsTest.dart (revision 921)
+++ tests/standalone/src/ProcessInvalidArgumentsTest.dart (working copy)
@@ -31,34 +31,8 @@
}
}
-class MyString implements String {
- MyString();
-}
-
-void testMyStringArgument() {
- Process p = new Process("true", [new MyString()]);
- try {
- p.start();
- Expect.fail("Did not throw exception");
- } catch(var e) {
- Expect.isTrue(e is ProcessException, "Wrong exception type: $e");
- }
-}
-
-void testMyStringPath() {
- Process p = new Process(new MyString(), ['asdf']);
- try {
- p.start();
- Expect.fail("Did not throw exception");
- } catch(var e) {
- Expect.isTrue(e is ProcessException, "Wrong exception type: $e");
- }
-}
-
void main() {
testNonStringPath();
testNonListArguments();
testNonStringArgument();
- testMyStringArgument();
- testMyStringPath();
}

Powered by Google App Engine
This is Rietveld 408576698