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

Function _run

test/jasmine/tests/colorscale_test.js:770–781  ·  view source on GitHub ↗
(msg, restyleObj, exp)

Source from the content-addressed store, hash-verified

768
769 // update via, assert then assert again (and again ;) after non-calc edits
770 function _run(msg, restyleObj, exp) {
771 return Plotly.restyle(gd, restyleObj)
772 .then(function() { _assert(msg, exp); })
773 .then(function() { return Plotly.relayout(gd, 'xaxis.range', [-1, 5]); })
774 .then(function() { _assert(msg + ' after axrange relayout', exp); })
775 .then(function() { return Plotly.relayout(gd, 'xaxis.autorange', true); })
776 .then(function() { _assert(msg + ' after autorange', exp); })
777 .then(function() { return Plotly.restyle(gd, 'contours.showlines', true); })
778 .then(function() { _assert(msg + ' after contours.showlines restyle', exp); })
779 .then(function() { return Plotly.restyle(gd, 'contours.showlines', false); })
780 .then(function() { _assert(msg + ' back to original contours.showlines', exp); });
781 }
782
783 var rdbu = ['rgb(5, 10, 172)', 'rgb(190, 190, 190)', 'rgb(178, 10, 28)'];
784 var reds = ['rgb(220, 220, 220)', 'rgb(234, 135, 92)', 'rgb(178, 10, 28)'];

Callers 1

colorscale_test.jsFile · 0.70

Calls 1

_assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…