| Index: tests/html/js_test.dart
|
| diff --git a/tests/html/js_test.dart b/tests/html/js_test.dart
|
| index ae9d9b3b9f1fd572254904ef702aebba7629cae0..c55408160edbfa98e06e68a0a7752aaec1b680b0 100644
|
| --- a/tests/html/js_test.dart
|
| +++ b/tests/html/js_test.dart
|
| @@ -194,6 +194,8 @@ someObject.role = "object";
|
| document.body.append(script);
|
| }
|
|
|
| +typedef bool StringToBool(String s);
|
| +
|
| // Some test are either causing other test to fail in IE9, or they are failing
|
| // for unknown reasons
|
| // useHtmlConfiguration+ImageData bug: dartbug.com/14355
|
| @@ -922,6 +924,17 @@ main() {
|
|
|
| });
|
|
|
| + group('JavaScriptFunction', () {
|
| + test('is check', () {
|
| + var fn = (String s) => true;
|
| + var jsFn = allowInterop(fn);
|
| + expect(fn is StringToBool, isTrue);
|
| + expect(jsFn is StringToBool, isTrue);
|
| + expect(jsFn is Function, isTrue);
|
| + expect(jsFn is List, isFalse);
|
| + });
|
| + });
|
| +
|
| group('Dart->JS', () {
|
|
|
| test('Date', () {
|
|
|