mirror of
https://github.com/servo/servo
synced 2026-05-13 18:37:30 +02:00
32 lines
980 B
JavaScript
32 lines
980 B
JavaScript
"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");
|