{"size": 2613, "ext": "js", "max_stars_repo_path": "tests/mobile/angular/splitview.js", "max_stars_repo_name": "jansone-dace/kendo-ui-core", "max_stars_repo_stars_event_min_datetime": "2020-03-20T12:00:14.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-20T12:00:14.000Z", "max_issues_repo_path": "tests/mobile/angular/splitview.js", "max_issues_repo_name": "mhowarth2000/kendo-ui-core", "max_issues_repo_issues_event_min_datetime": "2021-05-20T23:19:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T10:28:18.000Z", "max_forks_repo_path": "tests/mobile/angular/splitview.js", "max_forks_repo_name": "mhowarth2000/kendo-ui-core", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 37.8695652174, "max_line_length": 84, "alphanum_fraction": 0.5093761959}
(function () {
    ngTestModule("Mobile SplitView", {
        teardown: function() {
        }
    });

    ngTest("is instantiated from a kendo-mobile-split-view directive", 1,
    function() {
        QUnit.fixture.html("<div kendo-mobile-application id='app'>" +
            "<kendo-mobile-split-view id='splitview'>" +
                "<kendo-mobile-pane id='side-pane'>" +
                    "<kendo-mobile-view id='side-home'>Side</kendo-mobile-view>" +
                "<kendo-mobile-pane>" +

                "<kendo-mobile-pane id='main-pane'>" +
                    "<kendo-mobile-view id='main-home'>Main</kendo-mobile-view>" +
                "<kendo-mobile-pane>" +
            "<kendo-mobile-split-view>" +
        "</div>");
    },
    function() {
        var element = QUnit.fixture.find("#splitview");
        ok(element.getKendoMobileSplitView());
    });

    ngTest("accepts attribute options", 1,
    function() {
        QUnit.fixture.html("<div kendo-mobile-application id='app'>" +
            "<kendo-mobile-split-view id='splitview' k-style=\"'vertical'\">" +
                "<kendo-mobile-pane id='side-pane'>" +
                    "<kendo-mobile-view id='side-home'>Side</kendo-mobile-view>" +
                "<kendo-mobile-pane>" +

                "<kendo-mobile-pane id='main-pane'>" +
                    "<kendo-mobile-view id='main-home'>Main</kendo-mobile-view>" +
                "<kendo-mobile-pane>" +
            "<kendo-mobile-split-view>" +
        "</div>");
    },
    function() {
        var splitview = QUnit.fixture.find("#splitview").getKendoMobileSplitView();
        equal(splitview.options.style, "vertical");
    });

    ngTest("initializes child panes", 2,
    function() {
        QUnit.fixture.html("<div kendo-mobile-application id='app'>" +
            "<kendo-mobile-split-view id='splitview' k-style=\"'vertical'\">" +
                "<kendo-mobile-pane id='side-pane'>" +
                    "<kendo-mobile-view id='side-home'>Side</kendo-mobile-view>" +
                "</kendo-mobile-pane>" +

                "<kendo-mobile-pane id='main-pane'>" +
                    "<kendo-mobile-view id='main-home'>Main</kendo-mobile-view>" +
                "</kendo-mobile-pane>" +
            "<kendo-mobile-split-view>" +
        "</div>");
    },
    function() {
        var sidePane = QUnit.fixture.find("#side-pane");
        var mainPane = QUnit.fixture.find("#main-pane");

        ok(sidePane.getKendoMobilePane());
        ok(mainPane.getKendoMobilePane());
    });

}());

