blob: 5ef971d74dd042f91e55fa46b100f9488e2ed231 [file] [log] [blame]
// Copyright (c) 2014, 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.
/// @assertion Stream<ProgressEvent> get onAbort
/// Stream of abort events handled by this HttpRequestEventTarget.
/// @description Checks the state an event is fired when the request is aborted.
/// @Issue https://github.com/dart-lang/co19/issues/932
import "dart:html";
import "../../../Utils/expect.dart";
main() {
var request = new HttpRequest();
HttpRequestUpload upload = request.upload;
request.open('GET', "test.dart");
upload.onAbort.listen((event) {
asyncEnd();
});
asyncStart();
request.send();
request.abort();
}