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

Unified Diff: tests/language/inlined_throw_test.dart

Issue 13646007: Fix buildbot VM breakage caused by incorrect test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/inlined_throw_test.dart
diff --git a/tests/language/inlined_throw_test.dart b/tests/language/inlined_throw_test.dart
index 16145da214fd332cdfb4281d115d3b6f886a4094..1b1afe1525ef3590ace42c4378b30de99b14b855 100644
--- a/tests/language/inlined_throw_test.dart
+++ b/tests/language/inlined_throw_test.dart
@@ -78,29 +78,12 @@ hoo() {
kast("hoo").x;
}
-switcheroo(x) {
+switcheroo() {
switch (kast("switcheroo")) {
case 0:
boo();
}
}
-switchertoo(x) {
- switch (kast("switcheroo")) {
- case boo():
- foo();
- }
-}
-
-switchenoo(x) {
- switch (x) {
- case callMeTrue():
- break;
- case kast("switchenoo"):
- break;
- case 42:
- return 42;
- }
-}
interpole() => "inter${kast('tada!')}pole";
interpoleCallThrow() => "inter${callMeTrue()}...${kast('tada!')}pole";
@@ -178,10 +161,6 @@ main() {
Expect.throws(yo);
Expect.throws(hoo);
Expect.throws(switcheroo);
- Expect.throws(switchertoo);
- testCallThenThrow(() => switchenoo(false));
- switchenoo(true);
- testCall(() { try { switchenoo(x); } catch(e) { } });
Expect.throws(interpole);
testCallThenThrow(interpoleCallThrow);
Expect.throws(call1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698