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

DIV-3528 - temporarily ignored W3C HTML validation tests #126

Merged
merged 2 commits into from
Nov 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions test/w3cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ const excludedWarnings = [
'The “navigation” role is unnecessary for element “nav”.'
];
const filteredWarnings = r => {
if (excludedWarnings.includes(r.message)) {
return false;
}
return true;
return !excludedWarnings.includes(r.message);
};

const excludeErrors = ['Attribute “pattern” is only allowed when the input type is “email”, “password”, “search”, “tel”, “text”, or “url”.']; // eslint-disable-line

/* eslint-disable */
// FIXME - Ignored errors (temporarily)
const excludeErrors = [
'Attribute “pattern” is only allowed when the input type is “email”, “password”, “search”, “tel”, “text”, or “url”.',
'Element “h2” not allowed as child of element “legend” in this context. (Suppressing further errors from this subtree.)'
];
/* eslint-enable */
const filteredErrors = r => {
if (excludeErrors.includes(r.message)) {
return false;
}
return true;
return !excludeErrors.includes(r.message);
};

// ensure step has a template - if it doesnt no need to test it
Expand Down