aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-11-07 18:05:18 -0500
committerJosh Matthews <josh@joshmatthews.net>2016-05-03 18:05:25 -0400
commitef10393ba6262ca6408581da800462c80955c6cc (patch)
tree49949cf396bcd13587914f4ee7577fa5604b4419
parentc64d7578d170b589f624b96d2acab614ba73baf6 (diff)
downloadservo-ef10393ba6262ca6408581da800462c80955c6cc.tar.gz
servo-ef10393ba6262ca6408581da800462c80955c6cc.zip
Execute the failure steps for an empty src attribute.
-rw-r--r--components/script/dom/htmlmediaelement.rs2
-rw-r--r--tests/wpt/metadata/html/semantics/embedded-content/media-elements/error-codes/error.html.ini9
2 files changed, 1 insertions, 10 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 928c0ed6e93..951f6e47b70 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -357,7 +357,7 @@ impl HTMLMediaElement {
ResourceSelectionMode::Attribute(src) => {
// Step 1
if src.is_empty() {
- // TODO failed with attribute
+ self.queue_dedicated_media_source_failure_steps();
return;
}
diff --git a/tests/wpt/metadata/html/semantics/embedded-content/media-elements/error-codes/error.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/media-elements/error-codes/error.html.ini
deleted file mode 100644
index 92d9425aabf..00000000000
--- a/tests/wpt/metadata/html/semantics/embedded-content/media-elements/error-codes/error.html.ini
+++ /dev/null
@@ -1,9 +0,0 @@
-[error.html]
- type: testharness
- expected: TIMEOUT
- [audio.error after setting src to the empty string]
- expected: TIMEOUT
-
- [video.error after setting src to the empty string]
- expected: TIMEOUT
-