7baae76480
Change-Id: Ib5ba6a908904c36a8580f6f47424b6982800dddd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98002 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
22 lines
653 B
Dart
22 lines
653 B
Dart
// Copyright (c) 2018, 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.
|
|
|
|
// ignore: IMPORT_INTERNAL_LIBRARY
|
|
import 'dart:_foreign_helper' as foreign show JS;
|
|
import 'dart:html';
|
|
|
|
/*element: main:[null]*/
|
|
main() {
|
|
createElement();
|
|
createRectangle();
|
|
}
|
|
|
|
/*element: createElement:[null|subclass=Element]*/
|
|
Element createElement()
|
|
// ignore: NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE
|
|
native;
|
|
|
|
/*element: createRectangle:[subclass=DomRectReadOnly]*/
|
|
createRectangle() => foreign.JS('Rectangle', "#", null);
|