Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Reworked the append method to support the inner `hyper::header::Headers`'s HashMap `insert` method, which overwrites entries instead of appending. - Filled out constructor as well as delete, get, has, and set methods. - Updated relevant test expectations
- Loading branch information
Showing
6 changed files
with
155 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
tests/wpt/metadata/fetch/api/headers/headers-errors.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,7 @@ | ||
[headers-errors.html] | ||
type: testharness | ||
[Check headers get with an invalid name invalidĀ] | ||
expected: FAIL | ||
|
||
[Check headers get with an invalid name [object Object\]] | ||
expected: FAIL | ||
|
||
[Check headers delete with an invalid name invalidĀ] | ||
expected: FAIL | ||
|
||
[Check headers delete with an invalid name [object Object\]] | ||
expected: FAIL | ||
|
||
[Check headers has with an invalid name invalidĀ] | ||
expected: FAIL | ||
|
||
[Check headers has with an invalid name [object Object\]] | ||
expected: FAIL | ||
|
||
[Check headers set with an invalid name invalidĀ] | ||
expected: FAIL | ||
|
||
[Check headers set with an invalid name [object Object\]] | ||
expected: FAIL | ||
|
||
[Check headers set with an invalid value invalidĀ] | ||
expected: FAIL | ||
|
||
[Check headers append with an invalid name invalidĀ] | ||
expected: FAIL | ||
|
||
[Check headers append with an invalid name [object Object\]] | ||
expected: FAIL | ||
|
||
[Check headers append with an invalid value invalidĀ] | ||
expected: FAIL | ||
|
||
[Headers forEach throws if argument is not callable] | ||
expected: FAIL | ||
|
||
[Headers forEach loop should stop if callback is throwing exception] | ||
expected: FAIL | ||
|
10 changes: 9 additions & 1 deletion
10
tests/wpt/metadata/fetch/api/headers/headers-structure.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
[headers-structure.html] | ||
type: testharness | ||
expected: TIMEOUT | ||
expected: OK | ||
[Headers has entries method] | ||
expected: FAIL | ||
|
||
[Headers has keys method] | ||
expected: FAIL | ||
|
||
[Headers has values method] | ||
expected: FAIL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters