v1
- by terrymorse 3/11/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
function makeArray(length) {
	const arr = [];
	for (let i = 0; i < length; i++) {
		arr[i] = i;
	}
	return arr;
}

function makeRandos(count, max) {
	const rands = [];
	for (let i = 0; i < count; i++) {
		rands[i] = Math.round(Math.random() * max);
	}
	return rands;
}

const arr100 = makeArray(100);
const arr1k = makeArray(1000);
const arr10k = makeArray(10_000);
const arr100k = makeArray(100_000);


const rands100 = makeRandos(10, 100);
const rands1k = makeRandos(10, 1000);
const rands10k = makeRandos(10, 10_000);
const rands100k = makeRandos(10, 100_000);

delete caserun single casemove downdrag and drop case


ready



for (const rand of rands100) {
	arr100.splice(rand, 0, "splice");
}
delete caserun single casemove upmove downdrag and drop case


ready



for (const rand of rands1k) {
	arr1k.splice(rand, 0, "splice");
}
delete caserun single casemove upmove downdrag and drop case


ready



for (const rand of rands10k) {
	arr10k.splice(rand, 0, "splice");
}
delete caserun single casemove updrag and drop case


ready



for (const rand of rands100k) {
	arr100k.splice(rand, 0, "splice");
}
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN