blob: 8c5349fb1690a4968cafd3b7d613973ac33ac893 [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:html';
import 'package:expect/async_helper.dart';
import 'package:expect/expect.dart';
Future 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());
}