Files
sdk/tests/lib_2/html/fileapi_supported_throws_test.dart
T
Terry Lucas d7a8aa155f Fixed a number of File API methods in DDC.
R=vsm@google.com

Change-Id: I77881201f1e89f731476655476eb865e10d581a1
Reviewed-on: https://dart-review.googlesource.com/38164
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2018-02-05 22:29:00 +00:00

21 lines
436 B
Dart

library fileapi;
import 'dart:async';
import 'dart:html';
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'package:async_helper/async_helper.dart';
main() {
useHtmlConfiguration();
test('requestFileSystem', () async {
var expectation = FileSystem.supported ? returnsNormally : throws;
expect(() async {
await window.requestFileSystem(100);
}, expectation);
});
}