Skip to content

Commit

Permalink
Properly fail in load-events-networkState.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Sep 29, 2017
1 parent b6e3faa commit 6aa9d80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -569581,7 +569581,7 @@
"testharness"
],
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState.html": [
"ad2401f93e135e6c9d618870bb07d92cfd0d8dcc",
"bb79a395a0297b288be526f72a7077628d130448",
"testharness"
],
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html": [
Expand Down
@@ -1,6 +1,5 @@
[load-events-networkState.html]
type: testharness
expected: TIMEOUT
[NETWORK_IDLE]
expected: TIMEOUT
expected: FAIL

Expand Up @@ -37,6 +37,7 @@
// fetch the resource" or "once the entire media resource has been fetched"
v.preload = 'none';
v.src = getAudioURI('/media/sound_5');
v.onerror = t.unreached_func();
v.onsuspend = t.step_func(function() {
v.onsuspend = null;
assert_equals(v.networkState, v.NETWORK_IDLE);
Expand All @@ -47,6 +48,7 @@
async_test(function(t) {
var v = document.createElement('video');
v.src = 'resources/delayed-broken-video.py';
v.onerror = t.unreached_func();
v.onloadstart = t.step_func(function() {
v.onloadstart = null;
assert_equals(v.networkState, v.NETWORK_LOADING);
Expand Down

0 comments on commit 6aa9d80

Please sign in to comment.