blob: 3dca6956a38876071be27db25302a0e9f64f03e6 [file] [log] [blame]
"use strict";
var idlArray = new IdlArray();
const domRectListList = [];
if ("document" in self) {
domRectListList.push(document.getElementById('log').getClientRects());
}
function doTest(idl) {
idlArray.add_idls(idl);
idlArray.add_objects({
DOMPointReadOnly: ["new DOMPointReadOnly()"],
DOMPoint: ["new DOMPoint()"],
DOMRectReadOnly: ["new DOMRectReadOnly()"],
DOMRect: ["new DOMRect()"],
DOMRectList: domRectListList,
DOMQuad: ["new DOMQuad()"],
DOMMatrixReadOnly: ["new DOMMatrixReadOnly()", "DOMMatrixReadOnly.fromMatrix({is2D: false})"],
DOMMatrix: ["new DOMMatrix()", "DOMMatrix.fromMatrix({is2D: false})"],
});
idlArray.prevent_multiple_testing("DOMMatrixReadOnly");
idlArray.prevent_multiple_testing("DOMMatrix");
idlArray.test();
done();
}
promise_test(function() {
return fetch("/interfaces/geometry.idl").then(response => response.text())
.then(doTest);
}, "Test driver");