blob: 6a7d5fd299c1b98ad782cdb484b3f0d75f556bf6 [file] [log] [blame]
// Copyright (c) 2016, 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.
library js_typed_interop_window_property_test;
import 'dart:html';
import 'package:js/js.dart';
import 'package:expect/expect.dart';
// This is a regression test for
_injectJs() {
document.body.append(new ScriptElement()
..type = 'text/javascript'
..innerHtml = r"""
"use strict"; = [function() { return 42; }];
external List<Function> get foo;
main() {
Expect.equals(foo[0](), 42);