Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upscript: Implement the HTMLTrackElement API #22563
Conversation
highfive
commented
Dec 26, 2018
|
Heads up! This PR modifies the following files:
|
|
Some of the async tests for activeCue etc were falsely passing. Updated the test expectations. |
|
r? @ferjm |
c32d063
to
235ea4d
|
Sorry, thought I ran |
|
Excellent! |
| // https://html.spec.whatwg.org/multipage/#dom-track-kind | ||
| fn Kind(&self) -> DOMString { | ||
| let element = self.upcast::<Element>(); | ||
| // The the value of "kind" and transform all uppercase |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| ) -> HTMLTrackElement { | ||
| HTMLTrackElement { | ||
| htmlelement: HTMLElement::new_inherited(local_name, prefix, document), | ||
| ready_state: HTMLTrackElementConstants::NONE, |
This comment has been minimized.
This comment has been minimized.
ferjm
Dec 28, 2018
Member
Could we add an enum like https://github.com/servo/servo/blob/master/components/script/dom/htmlmediaelement.rs#L215 ?
This comment has been minimized.
This comment has been minimized.
dlrobertson
Dec 28, 2018
Author
Contributor
I can definitely add that. In this PR the enum would be mostly unused, since None is the only variant that is currently used.
| // https://html.spec.whatwg.org/multipage/#dom-track-src | ||
| make_url_getter!(Src, "src"); | ||
| // https://html.spec.whatwg.org/multipage/#dom-track-src | ||
| make_url_setter!(SetSrc, "src"); |
This comment has been minimized.
This comment has been minimized.
ferjm
Dec 28, 2018
Member
I believe we depend on implementing and using Element::set_url_attribute within make_url_setter to be fully spec compliant here. Could you file a follow up bug to implement this, please?
This comment has been minimized.
This comment has been minimized.
dlrobertson
Dec 28, 2018
Author
Contributor
Yeah, for now make_url_setter is the same as make_setter.
|
@bors-servo try=wpt |
script: Implement the HTMLTrackElement API Implement the basics of the HTMLTrackElement and update the wpt tests. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes Fixes: #22313 <!-- 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/22563) <!-- Reviewable:end -->
|
|
|
@ferjm Updated |
|
It seems that this makes some tests in
|
|
These timeouts also might be related to this change. The tests include TextTracks and I don't think the previous
|
|
@ferjm Updated |
|
@bors-servo r+ |
|
|
script: Implement the HTMLTrackElement API Implement the basics of the HTMLTrackElement and update the wpt tests. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes Fixes: #22313 <!-- 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/22563) <!-- Reviewable:end -->
|
|
|
We need to update the expectations for |
|
Looks like there're more
|
Implement the basics of the HTMLTrackElement and update the wpt tests.
|
@bors-servo r+ |
|
|
script: Implement the HTMLTrackElement API Implement the basics of the HTMLTrackElement and update the wpt tests. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes Fixes: #22313 <!-- 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/22563) <!-- Reviewable:end -->
|
|
dlrobertson commentedDec 26, 2018
•
edited
Implement the basics of the HTMLTrackElement and update the wpt tests.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsFixes: #22313
This change is