41bda23a77
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>
18 lines
478 B
Dart
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);
|
|
});
|
|
});
|
|
}
|