MCPcopy Index your code
hub / github.com/librespeed/speedtest / createSpeedtest

Function createSpeedtest

frontend/javascript/index.js:37–45  ·  view source on GitHub ↗

* Create a new Speedtest and hook it into the global state

()

Source from the content-addressed store, hash-verified

35 * Create a new Speedtest and hook it into the global state
36 */
37function createSpeedtest() {
38 testState.speedtest = new Speedtest();
39 testState.speedtest.onupdate = (data) => {
40 testState.testData = data;
41 testState.testDataDirty = true;
42 };
43 testState.speedtest.onend = (aborted) =>
44 (testState.state = aborted ? READY : FINISHED);
45}
46
47/**
48 * Make all the buttons respond to the right clicks

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected