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

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

Issue 1346093003: Revert "Add optional message to assert in Dart2js - continued" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of dart2js.semantics_visitor_test; 5 part of dart2js.semantics_visitor_test;
6 6
7 const Map<String, List<Test>> SEND_TESTS = const { 7 const Map<String, List<Test>> SEND_TESTS = const {
8 'Parameters': const [ 8 'Parameters': const [
9 // Parameters 9 // Parameters
10 const Test('m(o) => o;', 10 const Test('m(o) => o;',
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 m() => dynamic--; 1735 m() => dynamic--;
1736 ''', 1736 ''',
1737 const Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_POSTFIX, 1737 const Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_POSTFIX,
1738 constant: 'dynamic', 1738 constant: 'dynamic',
1739 operator: '--')), 1739 operator: '--')),
1740 ], 1740 ],
1741 'Assert': const [ 1741 'Assert': const [
1742 // Assert 1742 // Assert
1743 const Test( 1743 const Test(
1744 ''' 1744 '''
1745 m() { assert(m()); } 1745 m() { assert(false); }
1746 ''', 1746 ''',
1747 const Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_INVOKE, 1747 const Visit(VisitKind.VISIT_ASSERT, expression: 'false')),
1748 element: 'function(m)', 1748 const Test(
1749 arguments: '()')), 1749 '''
1750 m() { assert(); }
1751 ''',
1752 const Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: '()')),
1753 const Test(
1754 '''
1755 m() { assert(42, true); }
1756 ''',
1757 const Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: '(42,true)')),
1750 ], 1758 ],
1751 'Logical and': const [ 1759 'Logical and': const [
1752 // Logical and 1760 // Logical and
1753 const Test( 1761 const Test(
1754 ''' 1762 '''
1755 m() => true && false; 1763 m() => true && false;
1756 ''', 1764 ''',
1757 const Visit(VisitKind.VISIT_LOGICAL_AND, left: 'true', right: 'false')), 1765 const Visit(VisitKind.VISIT_LOGICAL_AND, left: 'true', right: 'false')),
1758 ], 1766 ],
1759 'Logical or': const [ 1767 'Logical or': const [
(...skipping 2691 matching lines...) Expand 10 before | Expand all | Expand 10 after
4451 element: 'field(a)', rhs: '42')), 4459 element: 'field(a)', rhs: '42')),
4452 4460
4453 const Test( 4461 const Test(
4454 ''' 4462 '''
4455 m() => unresolved ??= 42; 4463 m() => unresolved ??= 42;
4456 ''', 4464 ''',
4457 const Visit(VisitKind.VISIT_UNRESOLVED_SET_IF_NULL, 4465 const Visit(VisitKind.VISIT_UNRESOLVED_SET_IF_NULL,
4458 name: 'unresolved', rhs: '42')), 4466 name: 'unresolved', rhs: '42')),
4459 ], 4467 ],
4460 }; 4468 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test.dart ('k') | tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698