1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

domRectTest: added getBOXQuads test

This commit is contained in:
kkapsner 2020-07-29 14:17:25 +02:00
parent ff98b9b9af
commit 71c9baec0a

View File

@ -142,6 +142,10 @@
createTest("Element.getBoundingClientRect", function(element){ createTest("Element.getBoundingClientRect", function(element){
return element.getBoundingClientRect(); return element.getBoundingClientRect();
}, useIframe); }, useIframe);
createTest("Element.getBoxQuads", function(element){
const quad = element.getBoxQuads();
return quad[0].getBounds();
}, useIframe);
createTest("Range.getClientRects", function(element){ createTest("Range.getClientRects", function(element){
const range = document.createRange(); const range = document.createRange();
range.selectNode(element); range.selectNode(element);