Skip to content

Commit 183f8b2

Browse files
nshahanCommit Queue
authored andcommitted
[tests] Fix typing information in package:js tests
Makes this test consistent with the others in the "family" which all use `String` as the return type. Change-Id: Id50de839094f766f29170d4b42e922635e12683a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423561 Commit-Queue: Nicholas Shahan <[email protected]> Reviewed-by: Srujan Gaddam <[email protected]>
1 parent d938748 commit 183f8b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/lib/js/call_method_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ import 'package:js/js.dart';
2828
import 'call_utils.dart';
2929

3030
@JS('jsFunction')
31-
external int Function(String) jsFunctionAsFunction;
31+
external String Function(String) jsFunctionAsFunction;
3232

3333
@JS('jsObject')
34-
external int Function(String) jsObjectAsFunction;
34+
external String Function(String) jsObjectAsFunction;
3535

3636
@JS('jsClass')
37-
external int Function(String) jsClassAsFunction;
37+
external String Function(String) jsClassAsFunction;
3838

3939
@JS('jsFunction')
4040
external Function jsFunctionAsFunctionInterface;
@@ -47,7 +47,7 @@ external Function jsClassAsFunctionInterface;
4747

4848
@JS()
4949
class NamedClass {
50-
external int call(String s);
50+
external String call(String s);
5151
}
5252

5353
@JS('jsFunction')
@@ -62,7 +62,7 @@ external NamedClass get jsClassAsNamedClass;
6262
@JS()
6363
@anonymous
6464
class SomeClass {
65-
external int call(String s);
65+
external String call(String s);
6666
}
6767

6868
@JS('jsFunction')

0 commit comments

Comments
 (0)