MCPcopy
hub / github.com/plotly/plotly.js / checkLayoutSize

Function checkLayoutSize

test/jasmine/tests/config_test.js:34–41  ·  view source on GitHub ↗
(width, height)

Source from the content-addressed store, hash-verified

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);

Callers 4

beforeResizeFunction · 0.85
afterResizeFunction · 0.85
config_test.jsFile · 0.85
testResponsiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…