v1
- by roviury 7/18/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var arr1 = ['ytp-caption-window-container', 'contents', 'items', 'button', 'movie_player', 'player-ads', 'hover-overlays', 'replies'];

var arr2 = arr1.map(t => Math.random() + t + Math.random());

var arr3 = arr1.concat(arr2);

var arr4 = [].concat(...(new Array(100)).fill(0).map(t => [...arr3]))

arr4.sort(() => Math.random() > 0.5 ? 1 : -1);

const arr = arr4;

const p1 = (s) => {
    switch (s) {
        case 'ytp-caption-window-container':
            return true;
        case 'contents':
            return true;
        case 'items':
            return true;
        case 'button':
            return true;
        case 'movie_player':
            return true;
        case 'player-ads':
            return true;
        case 'hover-overlays':
            return true;
        case 'replies':
            return true;
    }
    return false
}

const p2 = (s) => arr1.includes(s)
delete caserun single casemove downdrag and drop case


ready



for (const s of [...arr4]) {
    p1(s)
}
delete caserun single casemove updrag and drop case


ready



for (const s of [...arr4]) {
    p2(s)
}
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