3d0432eafc
Included change in fileapi_supported_throws_test to sanity test the change in async_minitest. Change-Id: I6e6b6b4eb0740ae695a85d4b3c1e2b4f8f63615a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138614 Commit-Queue: Srujan Gaddam <srujzs@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
18 lines
375 B
Dart
18 lines
375 B
Dart
library fileapi;
|
|
|
|
import 'dart:async';
|
|
import 'dart:html';
|
|
|
|
import 'package:async_helper/async_helper.dart';
|
|
import 'package:async_helper/async_minitest.dart';
|
|
|
|
main() {
|
|
test('requestFileSystem', () async {
|
|
var expectation = FileSystem.supported ? returnsNormally : throws;
|
|
expect(() async {
|
|
await window.requestFileSystem(100);
|
|
}, expectation);
|
|
});
|
|
}
|
|
|