Files
sdk/tests/lib_2/html/wrapping_collections_test.dart
T
Ben Konyi 41bda23a77 Migrated test block 214 to Dart 2.0.
wrapping_collections_test was modified since JSNative is deprecated and
was causing the test to fail ('class js has no getter for JSNative').

Bug:
Change-Id: Icc8951bce4be1152984b66769676080f89e5f1f7
Reviewed-on: https://dart-review.googlesource.com/9420
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2017-10-11 20:22:31 +00:00

18 lines
478 B
Dart

import 'dart:html';
import 'dart:html_common';
import 'dart:js' as js;
import 'package:expect/minitest.dart';
/// Test that if we access objects through JS-interop we get the
/// appropriate objects, even if dart:html maps them.
main() {
test("Access through JS-interop", () {
var performance = js.context['performance'];
var entries = performance.callMethod('getEntries', const []);
entries.forEach((x) {
expect(x is js.JsObject, isTrue);
});
});
}