mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:01:42 +00:00
Delete lib_2/async/timer_not_available_test.
Change-Id: If24b2652f3b8fa22e844b20fab8034d13e3003ef Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117066 Commit-Queue: Mayank Patke <fishythefish@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com> Auto-Submit: Mayank Patke <fishythefish@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
parent
d9489622be
commit
c858519064
|
@ -1,27 +0,0 @@
|
|||
// Copyright (c) 2011, 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 timerNotAvailable;
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
import 'dart:async';
|
||||
|
||||
main() {
|
||||
final ms = const Duration(milliseconds: 1);
|
||||
bool failed = false;
|
||||
try {
|
||||
new Timer(ms * 5, () {});
|
||||
} on UnsupportedError catch (e) {
|
||||
failed = true;
|
||||
}
|
||||
Expect.isTrue(failed);
|
||||
failed = false;
|
||||
try {
|
||||
var t = new Timer.periodic(ms * 10, (_) {});
|
||||
t.cancel();
|
||||
} on UnsupportedError catch (e) {
|
||||
failed = true;
|
||||
}
|
||||
Expect.isTrue(failed);
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
[ $compiler == none ]
|
||||
async/future_or_strong_test: RuntimeError
|
||||
async/timer_not_available_test: SkipByDesign # only meant to test when there is no way to implement timer (currently only in d8)
|
||||
isolate/compile_time_error_test/01: Skip # Issue 12587
|
||||
isolate/ping_test: Skip # Resolve test issues
|
||||
mirrors/symbol_validation_test: RuntimeError # Issue 13596
|
||||
|
|
Loading…
Reference in a new issue