Index: tests/compiler/dart2js/semantic_visitor_test_send_data.dart |
diff --git a/tests/compiler/dart2js/semantic_visitor_test_send_data.dart b/tests/compiler/dart2js/semantic_visitor_test_send_data.dart |
index 8dc6e3d7f62c26afb2700b55f034d092bd5f1e55..c407766d961ff4e5ac0c9d5e9b5a37107fa1c0d7 100644 |
--- a/tests/compiler/dart2js/semantic_visitor_test_send_data.dart |
+++ b/tests/compiler/dart2js/semantic_visitor_test_send_data.dart |
@@ -1742,19 +1742,11 @@ const Map<String, List<Test>> SEND_TESTS = const { |
// Assert |
const Test( |
''' |
- m() { assert(false); } |
+ m() { assert(m()); } |
''', |
- const Visit(VisitKind.VISIT_ASSERT, expression: 'false')), |
- const Test( |
- ''' |
- m() { assert(); } |
- ''', |
- const Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: '()')), |
- const Test( |
- ''' |
- m() { assert(42, true); } |
- ''', |
- const Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: '(42,true)')), |
+ const Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_INVOKE, |
+ element: 'function(m)', |
+ arguments: '()')), |
], |
'Logical and': const [ |
// Logical and |