MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / selectOther

Function selectOther

atomic-cli/tests/fixtures/graph_canvas_test.js:53–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 var other = Array.from(picker.options).find(function(option) { return option.value && option.value !== first; });
52 assert(other, 'fixture must have multiple selectable nodes');
53 function selectOther() { picker.value = other.value; picker.dispatchEvent(new Event('change')); }
54 function mouse(target, type, x, y) {
55 target.dispatchEvent(new MouseEvent(type, {clientX: x, clientY: y, bubbles: true, view: window, button: 0}));
56 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected