Bug 1444643 [wpt PR 9958] - Allow for exception to occur if medium not found, a=testonly

Automatic update from web-platform-testsAllow for exception to occur if medium not found (#9958)

According to https://drafts.csswg.org/cssom/#dom-medialist-deletemedium, "If nothing was removed, then throw a NotFoundError exception." Throwing an exception in this step stops the test with an error. Assert that the correct exception is thrown, and allow the test to continue.

wpt-commits: 72a61489a6e95e5732c541b9d854fe957052110a
wpt-pr: 9958
wpt-commits: 72a61489a6e95e5732c541b9d854fe957052110a
wpt-pr: 9958
This commit is contained in:
Chris Nardi 2018-04-09 16:41:08 +00:00 committed by James Graham
parent ea78003260
commit 2396d21ecd
2 changed files with 2 additions and 2 deletions

View File

@ -532768,7 +532768,7 @@
"testharness"
],
"css/cssom/medialist-interfaces-002.html": [
"20d4d9e76e0331816aed5f70182dee6966e568e7",
"e04c0d3c8533660f524310350c7e71defa4888b2",
"testharness"
],
"css/cssom/medialist-interfaces-003.html": [

View File

@ -58,7 +58,7 @@
media_list.appendMedium("all");
media_list.deleteMedium("screen");
assert_throws("NotFoundError", () => media_list.deleteMedium("screen"));
assert_equals(media_list.length, 1);
assert_equals(media_list.item(0), "all");