(nodeList, width, height)
| 649 | } |
| 650 | |
| 651 | function checkElementsSize(nodeList, width, height) { |
| 652 | var i; |
| 653 | for(i = 0; i < nodeList.length; i++) { |
| 654 | var domRect = nodeList[i].getBoundingClientRect(); |
| 655 | expect(domRect.width).toBe(width); |
| 656 | expect(domRect.height).toBe(height); |
| 657 | expect(+nodeList[i].getAttribute('width')).toBe(width); |
| 658 | expect(+nodeList[i].getAttribute('height')).toBe(height); |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | function checkCanvasSize(canvases, width, height) { |
| 663 | var i; |
no outgoing calls
no test coverage detected
searching dependent graphs…