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

Function clockTick

test/jasmine/assets/check_transitions.js:20–25  ·  view source on GitHub ↗
(currentNow, milliseconds)

Source from the content-addressed store, hash-verified

18}
19
20function clockTick(currentNow, milliseconds) {
21 Date.now = function() {
22 return currentNow + milliseconds;
23 };
24 d3Timer.flush();
25}
26
27// Using the methodology from http://eng.wealthfront.com/2017/10/26/testing-d3-transitions/
28module.exports = function checkTransition(gd, mock, animateOpts, transitionOpts, tests) {

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…