MCPcopy Index your code
hub / github.com/plotly/plotly.js / assertPtOpacity

Function assertPtOpacity

test/jasmine/tests/select_test.js:3378–3383  ·  view source on GitHub ↗
(selector, expected)

Source from the content-addressed store, hash-verified

3376 afterEach(destroyGraphDiv);
3377
3378 function assertPtOpacity(selector, expected) {
3379 d3SelectAll(selector).each(function(_, i) {
3380 var style = Number(this.style.opacity);
3381 expect(style).toBe(expected.style[i], 'style for pt ' + i);
3382 });
3383 }
3384
3385 it('should persist for scatter', function(done) {
3386 function _assert(expected) {

Callers 1

_assertFunction · 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…