Modify Headers API to correctly validate value.

This commit modifies the headers API script to correctly validate value. As a result of this change, more wpt tests pass. The commit also changes the expected test results.
This commit is contained in:
Jeena Lee 2016-08-10 15:30:12 -07:00
parent fabe2b8f7e
commit 69f4cf6808
6 changed files with 14 additions and 42 deletions

View file

@ -3,21 +3,12 @@
[Create headers from empty object]
expected: FAIL
[Create headers with sequence]
expected: FAIL
[Create headers with OpenEndedDictionary]
expected: FAIL
[Create headers with existing headers]
expected: FAIL
[Check append method]
expected: FAIL
[Check set method]
expected: FAIL
[Check has method]
expected: FAIL

View file

@ -3,12 +3,3 @@
[Create headers, names use characters with different case]
expected: FAIL
[Check append method, names use characters with different case]
expected: FAIL
[Check set method, names use characters with different case]
expected: FAIL
[Check delete method, names use characters with different case]
expected: FAIL

View file

@ -3,12 +3,6 @@
[Create headers using same name for different values]
expected: FAIL
[Check delete and has methods when using same name for different values]
expected: FAIL
[Check set methods when called with already used name]
expected: FAIL
[Check append methods when called with already used name]
expected: FAIL

View file

@ -1,8 +1,5 @@
[headers-errors.html]
type: testharness
[Headers forEach throws if argument is not callable]
expected: FAIL
[Headers forEach loop should stop if callback is throwing exception]
expected: FAIL

View file

@ -3,9 +3,3 @@
[Create headers with not normalized values]
expected: FAIL
[Check append method whith not normalized values]
expected: FAIL
[Check set method whith not normalized values]
expected: FAIL