Skip to content

Commit b36bc84

Browse files
Ignore one test in ddc
1 parent 2b64352 commit b36bc84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/factory/dart_function_factory_test.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
@TestOn('browser')
44
library react.dart_function_factory_test;
55

6+
import 'dart:js_util';
7+
68
import 'package:react/react.dart' as react;
79
import 'package:react/react_client/react_interop.dart';
810
import 'package:react/src/js_interop_util.dart';
@@ -31,7 +33,10 @@ main() {
3133
expect(getJsFunctionName(FunctionFoo.reactFunction), '_FunctionFoo');
3234

3335
expect(FunctionFoo.displayName, getJsFunctionName(FunctionFoo.reactFunction));
34-
});
36+
// There was a change in Dart 3.8.0 where `getProperty(object, 'name')` returns 'tear' for top-level functions in ddc.
37+
// `getProperty` is deprecated in Dart 3 so we might move away from this functionality in the future.
38+
// For now, we will just ignore this test in ddc.
39+
}, tags: 'no-dartdevc');
3540

3641
test('is populated by the provided argument', () {
3742
expect(NamedFunctionFoo.displayName, 'Bar');

0 commit comments

Comments
 (0)