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

Function assertAnchorLink

test/jasmine/tests/svg_text_utils_test.js:31–40  ·  view source on GitHub ↗
(node, href, target, show, msg)

Source from the content-addressed store, hash-verified

29 }
30
31 function assertAnchorLink(node, href, target, show, msg) {
32 var a = node.select('a');
33
34 if(target === undefined) target = href === null ? null : '_blank';
35 if(show === undefined) show = href === null ? null : 'new';
36
37 expect(a.attr('xlink:href')).toBe(href, msg);
38 expect(a.attr('target')).toBe(target, msg);
39 expect(a.attr('xlink:show')).toBe(show, msg);
40 }
41
42 function assertTspanStyle(node, style, msg) {
43 var tspan = node.select('tspan');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…