Newer
Older
minerva / Tests / LibWeb / Text / input / all-window-properties.html
@minerva minerva on 13 Jul 508 bytes Initial commit
<script src="include.js"></script>
<script>
    test(() => {
        const properties = Object.getOwnPropertyNames(window);
        const constructors = properties.filter(prop => {
            try {
                const value = window[prop];
                return typeof value === 'function' && !!value.prototype;
            } catch (e) {
                return false;
            }
        });
        constructors.sort();

        for (const c of constructors)
            println(c);
    });
</script>