Skip to content

Commit

Permalink
ignore errors that too frequent yet
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Sep 24, 2019
1 parent 7f344a3 commit d360c2a
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 22 deletions.
8 changes: 7 additions & 1 deletion resources/idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -3301,14 +3301,20 @@ function idl_test(srcs, deps, idl_setup_func) {
srcs = (srcs instanceof Array) ? srcs : [srcs] || [];
deps = (deps instanceof Array) ? deps : [deps] || [];
var setup_error = null;
const validationIgnored = [
"constructor-member",
"dict-arg-default",
"require-exposed"
];
return Promise.all(
srcs.concat(deps).map(fetch_spec))
.then(function(results) {
const astArray = results.map(result =>
WebIDL2.parse(result.idl, { sourceName: result.spec })
);
test(() => {
const validations = WebIDL2.validate(astArray);
const validations = WebIDL2.validate(astArray)
.filter(v => !validationIgnored.includes(v.ruleName));
if (validations.length) {
const message = validations.map(v => v.message).join("\n\n");
throw new Error(message);
Expand Down
100 changes: 79 additions & 21 deletions resources/webidl2/lib/webidl2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d360c2a

Please sign in to comment.