{"size": 1040, "ext": "js", "max_stars_repo_path": "src/main/webapp/integrationtestsjasmine/test5-viewroot2.js", "max_stars_repo_name": "werpu/myfaces-js-integrationtests", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/main/webapp/integrationtestsjasmine/test5-viewroot2.js", "max_issues_repo_name": "werpu/myfaces-js-integrationtests", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/main/webapp/integrationtestsjasmine/test5-viewroot2.js", "max_forks_repo_name": "werpu/myfaces-js-integrationtests", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.6666666667, "max_line_length": 88, "alphanum_fraction": 0.4990384615}
if (!window.viewRoot) {
    window.viewRoot = true;
    afterEach(function () {
        setTimeout(function () {
            myfaces.testcases.redirect("./test6-tablebasic.jsf");
        }, 1000);
    });
    describe("Viewroot with execute @all and render @all", function () {
        it("Needs to have the root replaced", function () {
            var htmlReporter = $("#HTMLReporter");
            runs(function () {

                htmlReporter.detach();
                jsf.ajax.request("allKeyword", null, {render: "@all", execute: "@all"});
            });

            waitsFor(function () {
                return !!myfaces.testcases.ajaxCnt;
            }, "server timeout", 10000);
            waitsFor(function(){
                return $("body").html().indexOf("refresh successul2") != -1;
            },"dom timeout", 3000);
            runs(function () {
                htmlReporter.appendTo("body");
                expect($("body").html().indexOf("refresh successul2")).not.toBe(-1);
            });
        })
    });
}
