(msg, restyleObj, exp)
| 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)']; |
no test coverage detected
searching dependent graphs…