// @dart = 2.9 | |
import 'dart:async'; | |
import 'dart:html'; | |
import 'package:async_helper/async_helper.dart'; | |
import 'package:expect/expect.dart'; | |
test() async { | |
var list = await window.navigator.mediaDevices.enumerateDevices(); | |
Expect.isTrue(list is List<dynamic>, "Expected list to be List<dynamic>"); | |
} | |
void main() { | |
asyncStart(); | |
test().then((_) => asyncEnd()); | |
} |