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

Unified Diff: tests/language/bit_operations_test.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Created 8 years, 4 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 | « tests/language/bad_named_parameters_test.dart ('k') | tests/language/bool_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/bit_operations_test.dart
diff --git a/tests/language/bit_operations_test.dart b/tests/language/bit_operations_test.dart
index 431ca57ded58079af33778e2154040dd46f6df25..fbe11d6dfaf4ad198280d8031fb808b8e2baa4e0 100644
--- a/tests/language/bit_operations_test.dart
+++ b/tests/language/bit_operations_test.dart
@@ -58,7 +58,7 @@ class BitOperationsTest {
TestCornerCasesLeftShifts();
}
}
-
+
static void TestCornerCasesLeftShifts() {
var v32 = 0xFF000000;
var v64 = 0xFF00000000000000;
@@ -69,26 +69,26 @@ class BitOperationsTest {
Expect.equals(0x1, v64 >> 0x3F);
Expect.equals(0x0, v64 >> 0x40);
}
-
+
static void TestNegativeCountShifts() {
bool throwOnLeft(a, b) {
try {
var x = a << b;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
-
+
bool throwOnRight(a, b) {
try {
var x = a >> b;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
-
+
Expect.isTrue(throwOnLeft(12, -3));
Expect.isTrue(throwOnRight(12, -3));
for (int i = 0; i < 4000; i++) {
« no previous file with comments | « tests/language/bad_named_parameters_test.dart ('k') | tests/language/bool_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698