mirror of
https://github.com/servo/servo.git
synced 2025-07-02 04:53:39 +01:00
19 lines
448 B
JavaScript
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;
|
|
}
|
|
});
|
|
}
|
|
});
|