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

Update web-platform-tests #18756

Merged
merged 9 commits into from Oct 5, 2017

Avoid testharness.js errors for assert_throws.

  • Loading branch information
jdm authored and Ms2ger committed Oct 4, 2017
commit 2fb74cb9e96ce80d47457480b84318881c48961c
"testharness"
],
"mozilla/activation.html": [
"b4ebf61aea2934347bf2355375f6e2c53ef212bb",
"4e0514aa4dd8a59d35037c6966bb938ad5f49b6a",
"testharness"
],
"mozilla/adopt-panic.css": [
"testharness"
],
"mozilla/element_attribute.html": [
"9524405acb2345751b6dc1b160108ff665701d81",
"35625bedf3b323f8538174058c755cbccd25157c",
"testharness"
],
"mozilla/element_attributes.html": [
"testharness"
],
"mozilla/union.html": [
"47ee847e660eb907a7bd916cf37cf3ceba68ea7d",
"7a4ca34dd10a10ec6e013ac86038a070addf2889",
"testharness"
],
"mozilla/unitless-length.html": [
@@ -42,7 +42,7 @@
"Activate input");

test(function () {
assert_throws(null, function () {
assert_throws("NotSupportedError", function () {
var foo = document.getElementById("foo");
foo.enterFormalActivationState();
});
@@ -52,13 +52,13 @@
});

test(function() {
assert_throws(null, function () {
assert_throws("NamespaceError", function () {
element.setAttributeNS("http://example.com", "xmlns", "foo");
});
assert_throws(null, function () {
assert_throws("NamespaceError", function () {
element.setAttributeNS("http://www.w3.org/2000/xmlns/", "attr", "value");
});
assert_throws(null, function () {
assert_throws("NamespaceError", function () {
element.setAttributeNS("http://www.w3.org/2000/xmlns/", "prefix:attr", "value");
});
});
@@ -16,7 +16,7 @@
sel.add(optgroup, div);
sel.add(opt, 5);
sel.add(optgroup, 5);
assert_throws(null, function() { sel.add(div) });
assert_throws(new TypeError(), function() { sel.add(div) });
sel.add(optgroup, function() {})
});
</script>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.