(width, height)
| 32 | afterEach(destroyGraphDiv); |
| 33 | |
| 34 | function checkLayoutSize(width, height) { |
| 35 | expect(gd._fullLayout.width).toBe(width); |
| 36 | expect(gd._fullLayout.height).toBe(height); |
| 37 | |
| 38 | var svg = document.getElementsByClassName('main-svg')[0]; |
| 39 | expect(+svg.getAttribute('width')).toBe(width); |
| 40 | expect(+svg.getAttribute('height')).toBe(height); |
| 41 | } |
| 42 | |
| 43 | function compareLayoutAndFullLayout(gd) { |
| 44 | expect(gd.layout.width).toBe(gd._fullLayout.width); |
no outgoing calls
no test coverage detected
searching dependent graphs…