Auto merge of #23188 - jackxbritton:issue-22287, r=KiChjang,ferjm

Implement HTMLMediaElement.crossorigin attribute logic.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [x] These changes fix #22287
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23188)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-05-22 07:52:26 -04:00 committed by GitHub
commit 377ade0aed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 55 deletions

View file

@ -1016,9 +1016,6 @@
[HTMLMediaElement interface: document.createElement("video") must inherit property "srcObject" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("video") must inherit property "crossOrigin" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("video") must inherit property "buffered" with the proper type]
expected: FAIL
@ -1085,9 +1082,6 @@
[HTMLMediaElement interface: document.createElement("audio") must inherit property "srcObject" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("audio") must inherit property "crossOrigin" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("audio") must inherit property "buffered" with the proper type]
expected: FAIL
@ -1169,9 +1163,6 @@
[HTMLMediaElement interface: new Audio() must inherit property "currentSrc" with the proper type]
expected: FAIL
[HTMLMediaElement interface: new Audio() must inherit property "crossOrigin" with the proper type]
expected: FAIL
[HTMLMediaElement interface: new Audio() must inherit property "NETWORK_EMPTY" with the proper type]
expected: FAIL
@ -6768,9 +6759,6 @@
[HTMLMediaElement interface: document.createElement("video") must inherit property "srcObject" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("video") must inherit property "crossOrigin" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("video") must inherit property "getStartDate()" with the proper type]
expected: FAIL
@ -6786,9 +6774,6 @@
[HTMLMediaElement interface: document.createElement("audio") must inherit property "srcObject" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("audio") must inherit property "crossOrigin" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("audio") must inherit property "getStartDate()" with the proper type]
expected: FAIL
@ -6804,9 +6789,6 @@
[HTMLMediaElement interface: new Audio() must inherit property "srcObject" with the proper type]
expected: FAIL
[HTMLMediaElement interface: new Audio() must inherit property "crossOrigin" with the proper type]
expected: FAIL
[HTMLMediaElement interface: new Audio() must inherit property "getStartDate()" with the proper type]
expected: FAIL
@ -6819,9 +6801,6 @@
[HTMLMediaElement interface: new Audio() must inherit property "controls" with the proper type]
expected: FAIL
[HTMLMediaElement interface: attribute crossOrigin]
expected: FAIL
[HTMLMediaElement interface: operation getStartDate()]
expected: FAIL

View file

@ -1,31 +0,0 @@
[crossOrigin.html]
[HTMLMediaElement.crossOrigin, setting to invalid value]
expected: FAIL
[HTMLMediaElement.crossOrigin, content attribute use-credentials]
expected: FAIL
[HTMLMediaElement.crossOrigin, content attribute invalid value]
expected: FAIL
[HTMLMediaElement.crossOrigin, setting to uppercase ANONYMOUS]
expected: FAIL
[HTMLMediaElement.crossOrigin, content attribute uppercase ANONYMOUS]
expected: FAIL
[HTMLMediaElement.crossOrigin, setting to empty string]
expected: FAIL
[HTMLMediaElement.crossOrigin, content attribute empty string]
expected: FAIL
[HTMLMediaElement.crossOrigin, content attribute missing]
expected: FAIL
[HTMLMediaElement.crossOrigin, setting to use-credentials]
expected: FAIL
[HTMLMediaElement.crossOrigin]
expected: FAIL