Files
Nate Bosch 1948bd6109 Add fixes for HttpStatus constants
Add rename migrations for all the screaming snake case constants that
were renamed to lower camel case during the Dart 2 migraiton.

Rename the test from `file.dart` to `io.dart` so that we can test all
deprecations for the same import together. Add a test for the same
deprecations when imported through `dart:html`.

Change-Id: Iee91d88b1b11648e8c65cfcc8d2fcfabac3954ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/203820
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-06-22 23:39:57 +00:00

52 lines
1.8 KiB
Dart

// Copyright (c) 2021, 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';
void main() {
print(HttpStatus.CONTINUE);
print(HttpStatus.SWITCHING_PROTOCOLS);
print(HttpStatus.OK);
print(HttpStatus.CREATED);
print(HttpStatus.ACCEPTED);
print(HttpStatus.NON_AUTHORITATIVE_INFORMATION);
print(HttpStatus.NO_CONTENT);
print(HttpStatus.RESET_CONTENT);
print(HttpStatus.PARTIAL_CONTENT);
print(HttpStatus.MULTIPLE_CHOICES);
print(HttpStatus.MOVED_PERMANENTLY);
print(HttpStatus.FOUND);
print(HttpStatus.MOVED_TEMPORARILY);
print(HttpStatus.SEE_OTHER);
print(HttpStatus.NOT_MODIFIED);
print(HttpStatus.USE_PROXY);
print(HttpStatus.TEMPORARY_REDIRECT);
print(HttpStatus.BAD_REQUEST);
print(HttpStatus.UNAUTHORIZED);
print(HttpStatus.PAYMENT_REQUIRED);
print(HttpStatus.FORBIDDEN);
print(HttpStatus.NOT_FOUND);
print(HttpStatus.METHOD_NOT_ALLOWED);
print(HttpStatus.NOT_ACCEPTABLE);
print(HttpStatus.PROXY_AUTHENTICATION_REQUIRED);
print(HttpStatus.REQUEST_TIMEOUT);
print(HttpStatus.CONFLICT);
print(HttpStatus.GONE);
print(HttpStatus.LENGTH_REQUIRED);
print(HttpStatus.PRECONDITION_FAILED);
print(HttpStatus.REQUEST_ENTITY_TOO_LARGE);
print(HttpStatus.REQUEST_URI_TOO_LONG);
print(HttpStatus.UNSUPPORTED_MEDIA_TYPE);
print(HttpStatus.REQUESTED_RANGE_NOT_SATISFIABLE);
print(HttpStatus.EXPECTATION_FAILED);
print(HttpStatus.UPGRADE_REQUIRED);
print(HttpStatus.INTERNAL_SERVER_ERROR);
print(HttpStatus.NOT_IMPLEMENTED);
print(HttpStatus.BAD_GATEWAY);
print(HttpStatus.SERVICE_UNAVAILABLE);
print(HttpStatus.GATEWAY_TIMEOUT);
print(HttpStatus.HTTP_VERSION_NOT_SUPPORTED);
print(HttpStatus.NETWORK_CONNECT_TIMEOUT_ERROR);
}