Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic HTMLMediaElement seeking #22005

Merged
merged 8 commits into from Oct 26, 2018
@@ -74,6 +74,8 @@ scan
screen
scroll-position
search
seeked
seeking
select
serif
statechange

Large diffs are not rendered by default.

@@ -451,7 +451,7 @@ macro_rules! global_event_handlers(
event_handler!(keypress, GetOnkeypress, SetOnkeypress);
event_handler!(keyup, GetOnkeyup, SetOnkeyup);
event_handler!(loadeddata, GetOnloadeddata, SetOnloadeddata);
event_handler!(loadedmetata, GetOnloadedmetadata, SetOnloadedmetadata);
event_handler!(loadedmetadata, GetOnloadedmetadata, SetOnloadedmetadata);
event_handler!(loadstart, GetOnloadstart, SetOnloadstart);
event_handler!(mousedown, GetOnmousedown, SetOnmousedown);
event_handler!(mouseenter, GetOnmouseenter, SetOnmouseenter);
@@ -34,11 +34,11 @@ interface HTMLMediaElement : HTMLElement {
const unsigned short HAVE_FUTURE_DATA = 3;
const unsigned short HAVE_ENOUGH_DATA = 4;
readonly attribute unsigned short readyState;
// readonly attribute boolean seeking;
readonly attribute boolean seeking;

// playback state
// attribute double currentTime;
// void fastSeek(double time);
attribute double currentTime;
void fastSeek(double time);
readonly attribute unrestricted double duration;
// Date getStartDate();
readonly attribute boolean paused;
@@ -6783,18 +6783,6 @@
[HTMLMediaElement interface: document.createElement("video") must inherit property "buffered" with the proper type]
expected: FAIL

[HTMLMediaElement interface: document.createElement("video") must inherit property "seeking" with the proper type]
expected: FAIL

[HTMLMediaElement interface: document.createElement("video") must inherit property "currentTime" with the proper type]
expected: FAIL

[HTMLMediaElement interface: document.createElement("video") must inherit property "fastSeek(double)" with the proper type]
expected: FAIL

[HTMLMediaElement interface: calling fastSeek(double) on document.createElement("video") with too few arguments must throw TypeError]
expected: FAIL

[HTMLMediaElement interface: document.createElement("video") must inherit property "getStartDate()" with the proper type]
expected: FAIL

@@ -6852,18 +6840,6 @@
[HTMLMediaElement interface: document.createElement("audio") must inherit property "buffered" with the proper type]
expected: FAIL

[HTMLMediaElement interface: document.createElement("audio") must inherit property "seeking" with the proper type]
expected: FAIL

[HTMLMediaElement interface: document.createElement("audio") must inherit property "currentTime" with the proper type]
expected: FAIL

[HTMLMediaElement interface: document.createElement("audio") must inherit property "fastSeek(double)" with the proper type]
expected: FAIL

[HTMLMediaElement interface: calling fastSeek(double) on document.createElement("audio") with too few arguments must throw TypeError]
expected: FAIL

[HTMLMediaElement interface: document.createElement("audio") must inherit property "getStartDate()" with the proper type]
expected: FAIL

@@ -7140,15 +7116,6 @@
[HTMLMediaElement interface: attribute buffered]
expected: FAIL

[HTMLMediaElement interface: attribute seeking]
expected: FAIL

[HTMLMediaElement interface: attribute currentTime]
expected: FAIL

[HTMLMediaElement interface: operation fastSeek(double)]
expected: FAIL

[HTMLMediaElement interface: operation getStartDate()]
expected: FAIL

This file was deleted.

@@ -1,6 +1,5 @@
[seek-to-currentTime.html]
type: testharness
expected: TIMEOUT
[seek to currentTime]
expected: TIMEOUT
expected: FAIL

@@ -1,6 +1,5 @@
[seek-to-max-value.htm]
type: testharness
expected: TIMEOUT
[seek to Number.MAX_VALUE]
expected: TIMEOUT
expected: FAIL

@@ -1,6 +1,5 @@
[seek-to-negative-time.htm]
type: testharness
expected: TIMEOUT
[seek to negative time]
expected: TIMEOUT
expected: FAIL

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.