<commit_before>window.__karma__.loaded = function () { };

// Loading tests
var xhr = new XMLHttpRequest();

xhr.open("GET", "/tests/validation/config.json", true);

xhr.addEventListener("load", function () {
    if (xhr.status === 200) {

        config = JSON.parse(xhr.responseText);

        describe("Validation Tests", function () {
            before(function (done) {
                this.timeout(180000);
                require = null;
                BABYLONDEVTOOLS.Loader
                    .require('/tests/validation/validation.js')
                    .useDist()
                    .load(function () {
                        var info = engine.getGlInfo();
                        console.log("Webgl Version: " + info.version);
                        console.log("Webgl Vendor: " + info.vendor);
                        // Reduces error ratio on Embedded Firefox for travis.
                        if (info.vendor === "VMware, Inc.") {
                            errorRatio = 5;
                        }

                        console.log("Webgl Renderer: " + info.renderer);
                        done();
                    });
            });
<commit_msg>virtual screen test in test mode<commit_after>window.__karma__.loaded = function () { };

// Loading tests
var xhr = new XMLHttpRequest();

xhr.open("GET", "/tests/validation/config.json", true);

xhr.addEventListener("load", function () {
    if (xhr.status === 200) {

        config = JSON.parse(xhr.responseText);

        describe("Validation Tests", function () {
            before(function (done) {
                this.timeout(180000);
                require = null;
                BABYLONDEVTOOLS.Loader
                    .require('/tests/validation/validation.js')
                    .testMode()
                    .useDist()
                    .load(function () {
                        var info = engine.getGlInfo();
                        console.log("Webgl Version: " + info.version);
                        console.log("Webgl Vendor: " + info.vendor);
                        // Reduces error ratio on Embedded Firefox for travis.
                        if (info.vendor === "VMware, Inc.") {
                            errorRatio = 5;
                        }

                        console.log("Webgl Renderer: " + info.renderer);
                        done();
                    });
            });

{'fraction_non_alphanumeric': 0.12112443158329889, 'fraction_numerical': 0.00826787928896238, 'mean_word_length': 1.2659176029962547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6178672', 'n_tokens_mistral': 631, 'n_tokens_neox': 571, 'n_words': 120}