blob: 6ac473f0336255eedea1e0b28d8350da40ae80d3 [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 onError
* Stream of error events handled by this HttpRequestEventTarget.
* @description Checks that an error events issued when attemt to FET unexistent
* resourse is made and error 404 returned.
* @needsreview issue #16757
import "dart:html";
import "../../../Utils/expect.dart";
main() {
HttpRequest request = new HttpRequest();
HttpRequestUpload upload = request.upload;'GET', "IntentionallyMissingFile");
upload.onError.listen((event) {