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

Adds support for input element's maxlength attr #7323

Merged
merged 14 commits into from Dec 3, 2015

Uses `assert_throws` instead of explicit try/catch

  • Loading branch information
samfoo committed Dec 3, 2015
commit 7ba43913c2b7289d1120109d431741cac69eeac2
@@ -39,15 +39,9 @@ <h1>Text input element</h1>

test(
function() {
try {
assert_throws("INDEX_SIZE_ERR", function() {
document.getElementById("assign-negative").maxLength = -5;
} catch (e) {
if (e.name == "IndexSizeError") {
return;
}
}

throw new Error("expected IndexSizeError");
});
}, "Assigning negative integer throws IndexSizeError");

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