gecko-dev/testing/web-platform/tests/resources/webidl2/test/syntax.js
Geoffrey Sneddon dcf19b246d Bug 1457047 [wpt PR 10645] - Update webidl2.js to v10.2.1, a=testonly
Automatic update from web-platform-testsMerge pull request #10645 from csnardi/update-webidl2

 Update webidl2.js to v10.2.1
--

wpt-commits: 9f5c74dc3a633802acaa93ac325b11fff8c739f1
wpt-pr: 10645


--HG--
rename : testing/web-platform/tests/resources/webidl2/test/syntax/idl/iterator.widl => testing/web-platform/tests/resources/webidl2/test/invalid/idl/iterator.widl
rename : testing/web-platform/tests/resources/webidl2/test/invalid/idl/stringconstants.idl => testing/web-platform/tests/resources/webidl2/test/invalid/idl/stringconstants.widl
rename : testing/web-platform/tests/resources/webidl2/test/syntax/idl/typedef-union.idl => testing/web-platform/tests/resources/webidl2/test/syntax/idl/typedef-union.widl
2018-05-02 07:47:56 +01:00

19 lines
448 B
JavaScript

"use strict";
const { collect } = require("./util/collect");
const expect = require("expect");
const debug = true;
describe("Parses all of the IDLs to produce the correct ASTs", () => {
for (const test of collect("syntax")) {
it(`should produce the same AST for ${test.path}`, () => {
try {
expect(test.diff()).toBeFalsy();
}
catch (e) {
console.log(e.toString());
throw e;
}
});
}
});