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

Unified Diff: dart/compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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: dart/compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart
diff --git a/dart/compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart b/dart/compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart
deleted file mode 100644
index c7457ea9b1683226c3b61f5ef1f2e45b6a05812e..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class Foo {
- static main(arguments) {
- testCatch();
- testFinally();
- testCatchFinally();
- testMultipleCatch();
- testMultipleCatchFinally();
- testRethrow();
- }
-
- static testRethrow() {
- try {
- throw new Foo();
- } catch(e, st) {
- throw;
- }
- }
-
- static testCatch() {
- var exception;
- try {
- throw new Foo();
- } catch(e, st) {
- exception = e;
- }
- }
-
- static testFinally() {
- var exception;
- try {
- throw new Foo();
- } finally {
- exception = null;
- }
- }
-
- static testCatchFinally() {
- var exception;
- try {
- throw new Foo();
- } catch(e, st) {
- exception = e;
- } finally {
- exception = null;
- }
- }
-
- static testMultipleCatchFinally() {
- var exception;
- try {
- throw new Foo();
- } on Foo catch(e, st) {
- exception = e;
- } on Bar catch(e) {
- exception = e;
- } finally {
- exception = null;
- }
- }
-
- static testMultipleCatch() {
- var exception;
- try {
- throw new Foo();
- } catch (e) {
- exception = e;
- } on Map catch (e) {
- exception = e;
- } on int catch (e) {
- exception = e;
- } catch (e, st) {
- exception = e;
- } on Map catch (e, st) {
- exception = e;
- } on int catch (e, st) {
- exception = e;
- } finally {
- exception = e;
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698