(width, height, auto, msg, next)
| 518 | |
| 519 | it('updates autosize/width/height correctly', function (done) { |
| 520 | function assertSizeAndThen(width, height, auto, msg, next) { |
| 521 | return function () { |
| 522 | expect(gd._fullLayout.width).toBe(width, msg); |
| 523 | expect(gd._fullLayout.height).toBe(height, msg); |
| 524 | expect(gd._fullLayout.autosize).toBe(auto, msg); |
| 525 | if (!auto) { |
| 526 | expect(gd.layout.width).toBe(width, msg); |
| 527 | expect(gd.layout.height).toBe(height, msg); |
| 528 | } |
| 529 | |
| 530 | if (next) return Plotly.relayout(gd, next); |
| 531 | }; |
| 532 | } |
| 533 | |
| 534 | // give gd css sizing to be picked up by autosize |
| 535 | gd.style.width = '543px'; |
no outgoing calls
no test coverage detected
searching dependent graphs…