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

Function assertToggled

test/jasmine/tests/legend_test.js:2013–2019  ·  view source on GitHub ↗
(toggled)

Source from the content-addressed store, hash-verified

2011 }
2012
2013 function assertToggled(toggled) {
2014 return function () {
2015 var container = d3Select('g.traces').node();
2016 expect(container).not.toEqual(null);
2017 expect(container.style.opacity).toBe(toggled ? '0.5' : '1');
2018 };
2019 }
2020
2021 it('should prevent toggling if set', function (done) {
2022 var data = [{ x: [0, 1], y: [0, 1], type: 'scatter' }];

Callers 1

legend_test.jsFile · 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…