status.h2.any.js (459B)
1 // See also /xhr/status.h2.window.js 2 3 [ 4 200, 5 210, 6 400, 7 404, 8 410, 9 500, 10 502 11 ].forEach(status => { 12 promise_test(async t => { 13 const response = await fetch("/xhr/resources/status.py?code=" + status); 14 assert_equals(response.status, status, "status should be " + status); 15 assert_equals(response.statusText, "", "statusText should be the empty string"); 16 }, "statusText over H2 for status " + status + " should be the empty string"); 17 });