From 822de210b5de5e6db8a6dcb835df069339c81eff Mon Sep 17 00:00:00 2001 From: Stephen Adams Date: Tue, 2 Jul 2019 06:15:02 +0000 Subject: [PATCH] fix branch_canonicalization_test Change-Id: Icd26e9edf3dbf513c614743a97c696ed88df00db Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107570 Commit-Queue: Stephen Adams Reviewed-by: Siva Annamalai --- tests/language_2/branch_canonicalization_test.dart | 2 +- tests/language_2/language_2_dart2js.status | 2 -- tests/language_2/language_2_dartdevc.status | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/language_2/branch_canonicalization_test.dart b/tests/language_2/branch_canonicalization_test.dart index dfb35f6c62f..49990cd0b13 100644 --- a/tests/language_2/branch_canonicalization_test.dart +++ b/tests/language_2/branch_canonicalization_test.dart @@ -47,7 +47,7 @@ fooPoly(a, b) => barPoly(a, b) ? 1 : 0; main() { final a = 1.0; - final b = 1 << 62; + final b = 0x4000000000000000; // 1 << 62 final x = new A(), y = new B(), z = new C(); for (var i = 0; i < 20; i++) { Expect.equals(1, fooDouble(a, a)); diff --git a/tests/language_2/language_2_dart2js.status b/tests/language_2/language_2_dart2js.status index 8b8e3c95869..ff2eeb947b4 100644 --- a/tests/language_2/language_2_dart2js.status +++ b/tests/language_2/language_2_dart2js.status @@ -17,7 +17,6 @@ bit_operations_test: RuntimeError bit_operations_test/03: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351 bit_operations_test/04: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351 bit_operations_test/none: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351 -branch_canonicalization_test: RuntimeError call_method_as_cast_test/06: RuntimeError call_method_implicit_tear_off_implements_function_test/05: RuntimeError call_method_implicit_tear_off_implements_function_test/06: RuntimeError @@ -269,7 +268,6 @@ await_test: RuntimeError bit_operations_test/03: RuntimeError bit_operations_test/04: RuntimeError bit_operations_test/none: RuntimeError -branch_canonicalization_test: RuntimeError canonical_const2_test: RuntimeError, OK # non JS number semantics checked_method_error_order_test: RuntimeError class_cycle_test/02: MissingCompileTimeError diff --git a/tests/language_2/language_2_dartdevc.status b/tests/language_2/language_2_dartdevc.status index 26643dcd4ee..e1bfcb844ef 100644 --- a/tests/language_2/language_2_dartdevc.status +++ b/tests/language_2/language_2_dartdevc.status @@ -298,7 +298,6 @@ bit_operations_test/02: MissingCompileTimeError bit_operations_test/03: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351 bit_operations_test/04: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351 bit_operations_test/none: CompileTimeError, OK # Error if web int literal cannot be represented exactly, see http://dartbug.com/33351 -branch_canonicalization_test: RuntimeError # Issue 29920; Expect.equals(expected: <0>, actual: <1>) fails. built_in_identifier_prefix_test: CompileTimeError canonical_const2_test: RuntimeError # Ints and doubles are unified.; Expect.isFalse(true) fails. closure_call_wrong_argument_count_negative_test: Fail