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

Side by Side Diff: tests/compiler/dart2js/boolified_operator_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library boolified_operator_test; 5 library boolified_operator_test;
6 import "package:expect/expect.dart";
7 import 'compiler_helper.dart'; 6 import 'compiler_helper.dart';
8 7
9 const String TEST_EQUAL = r""" 8 const String TEST_EQUAL = r"""
10 foo(param0, param1) { 9 foo(param0, param1) {
11 if (param0 == param1) return 0; 10 if (param0 == param1) return 0;
12 return 1; 11 return 1;
13 } 12 }
14 """; 13 """;
15 14
16 const String TEST_EQUAL_NULL = r""" 15 const String TEST_EQUAL_NULL = r"""
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 Expect.isTrue(generated.contains('leB')); 66 Expect.isTrue(generated.contains('leB'));
68 67
69 generated = compile(TEST_GREATER, entry: 'foo'); 68 generated = compile(TEST_GREATER, entry: 'foo');
70 Expect.isFalse(generated.contains('=== true')); 69 Expect.isFalse(generated.contains('=== true'));
71 Expect.isTrue(generated.contains('gtB')); 70 Expect.isTrue(generated.contains('gtB'));
72 71
73 generated = compile(TEST_GREATER_EQUAL, entry: 'foo'); 72 generated = compile(TEST_GREATER_EQUAL, entry: 'foo');
74 Expect.isFalse(generated.contains('=== true')); 73 Expect.isFalse(generated.contains('=== true'));
75 Expect.isTrue(generated.contains('geB')); 74 Expect.isTrue(generated.contains('geB'));
76 } 75 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/begin_end_token_test.dart ('k') | tests/compiler/dart2js/boolify_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698