idlharness.any.js (1050B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 4 // https://drafts.fxtf.org/geometry/#DOMPoint 5 // https://drafts.fxtf.org/geometry/#DOMRect 6 // https://drafts.fxtf.org/geometry/#DOMQuad 7 // https://drafts.fxtf.org/geometry/#DOMMatrix 8 9 "use strict"; 10 11 idl_test( 12 ["geometry"], 13 [], 14 idlArray => { 15 const domRectListList = []; 16 if ("document" in self) { 17 domRectListList.push(document.getElementById('log').getClientRects()); 18 } 19 idlArray.add_objects({ 20 DOMPointReadOnly: ["new DOMPointReadOnly()"], 21 DOMPoint: ["new DOMPoint()"], 22 DOMRectReadOnly: ["new DOMRectReadOnly()"], 23 DOMRect: ["new DOMRect()"], 24 DOMRectList: domRectListList, 25 DOMQuad: ["new DOMQuad()"], 26 DOMMatrixReadOnly: ["new DOMMatrixReadOnly()", "DOMMatrixReadOnly.fromMatrix({is2D: false})"], 27 DOMMatrix: ["new DOMMatrix()", "DOMMatrix.fromMatrix({is2D: false})"] 28 }); 29 idlArray.prevent_multiple_testing("DOMMatrixReadOnly"); 30 idlArray.prevent_multiple_testing("DOMMatrix"); 31 } 32 );