ef6054d688
Also updates a few tests due to changes in how createEvent can be used. That browser API has been deprecated for a long time, but only recently did Chrome remove support for PopStateEvent through that API. So, instead to retain the original intent of the test, confuses are added after constructing the event to check that type tests work correctly. A few other tests are modified to remove code that depends on createEvent, either through eventType or supported members. See the Chrome bug for more details on the removal: https://issues.chromium.org/issues/41228793#comment38 Change-Id: Id55a215583221de3ccdbbeff16a2e17e9e35fb0b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/494160 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com> Auto-Submit: Srujan Gaddam <srujzs@google.com>
19 lines
571 B
Dart
19 lines
571 B
Dart
// Copyright (c) 2013, 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:html';
|
|
import 'dart:js_interop';
|
|
import 'dart:js_interop_unsafe';
|
|
|
|
import 'package:expect/legacy/minitest.dart'; // ignore: deprecated_member_use_from_same_package
|
|
|
|
main() {
|
|
test('Basic TouchEvent', () {
|
|
if (globalContext.has('TouchEvent')) {
|
|
var e = new TouchEvent('touch');
|
|
expect(e is TouchEvent, isTrue);
|
|
}
|
|
});
|
|
}
|