v2
2/27/2021 by pushkine -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
function*A(e){const t={start:0,end:0,index:0};for(;;){if(e.length===t.end-1)return void(--t.end!==t.start&&(yield t));switch(e[t.end++]){case"\r":"\n"===e[t.end+1]&&t.end++;case"\n":yield t,t.start=t.end,t.index++}}}function*B(e){const t={start:0,end:0,index:0};for(;;){if(e.length===t.end-1)return void(--t.end!==t.start&&(yield t));switch(e.charCodeAt(t.end++)){case 13:10===e.charCodeAt(t.end)&&t.end++;case 10:yield t,t.start=t.end,t.index++}}}function*C(e){const t={start:0,end:0,index:0};for(;;){if(e.length===t.end-1)return void(--t.end!==t.start&&(yield t));switch(e.charCodeAt(t.end++)){case 13:10===e.charCodeAt(t.end)&&t.end++;case 10:yield t,t.start=t.end,t.index++}}}function*E(e){const t={start:0,end:0,index:0};for(;e.length!==t.end;)switch(e.charCodeAt(t.end++)){case 13:10===e.charCodeAt(t.end)&&t.end++;case 10:yield t,t.start=t.end,t.index++}t.end!==t.start&&(yield t)}let text="";for(let e=0;e<160;e++){const e=Math.random();e>.2&&(text+=" "),text+=e.toString(36).slice(2+9*e),e>.7&&(text+=" "),e>.8&&(text+="\r"),e>.9&&(text+="\n")}
delete caserun single casemove downdrag and drop case


ready



let i = 0;
for(const line of A(text)){
	i+=line.start;
}
i;
delete caserun single casemove upmove downdrag and drop case


ready



let i = 0;
for(const line of B(text)){
	i+=line.start;
}
i;
delete caserun single casemove upmove downdrag and drop case


ready



let i = 0;
for(const line of C(text)){
	i+=line.start;
}
i;
delete caserun single casemove updrag and drop case


ready



let i = 0;
for(const line of E(text)){
	i+=line.start;
}
i;
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