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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_test.dart

Issue 737353002: cps-ir: Implement boolean conversion in and use it to implement '&&', '||', and '?:'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase to new test infrastructure. Created 6 years, 1 month 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/compiler/dart2js/js_backend_cps_ir_operators.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_backend_cps_ir_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_test.dart
index 75cf4d8dd386e5d2b78fc052a1078b30701fe7f9..f666a10fdc3d239d13fed0dfe41e5e3c1265cb0d 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_test.dart
@@ -16,12 +16,14 @@ import 'package:compiler/src/common.dart' show Element;
import 'js_backend_cps_ir_basic.dart' as basic;
import 'js_backend_cps_ir_literals.dart' as literals;
+import 'js_backend_cps_ir_operators.dart' as operators;
const String TEST_MAIN_FILE = 'test.dart';
List<TestEntry> tests = <TestEntry>[]
..addAll(basic.tests)
- ..addAll(literals.tests);
+ ..addAll(literals.tests)
+ ..addAll(operators.tests);
class TestEntry {
final String source;
@@ -51,7 +53,11 @@ main() {
Expect.isNotNull(compiler.assembledCode);
String expectation = test.expectation;
if (expectation != null) {
- Expect.equals(test.expectation, getCodeForMain(compiler));
+ String expected = test.expectation;
+ String found = getCodeForMain(compiler);
+ if (expected != found) {
+ Expect.fail('Expected:\n$expected\nbut found\n$found');
+ }
}
}).catchError((e) {
print(e);
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_operators.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698