"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Item = (function (_super) {
    __extends(Item, _super);
    function Item(data) {
        var _this = _super.call(this) || this;
        _this.data = data;
        return _this;
    }
    return Item;
}(R.TestView.Item));
function run() {
    describe("Test list", function () {
        it("Test basic from datas", function () {
            var el = document.createElement("div");
            var datas = [{ name: "a" }, { name: "b" }];
            var list = Leaf.Widget.makeList(el);
            list.fill(datas, Item);
            if (list.length != 2)
                throw new Error("Wrong list length");
            if (list[1].data.name != "b")
                throw new Error("Invalid list item");
            if (list[0].ListItemData.name != "a")
                throw new Error("Invalid list item data");
        });
    });
}
exports.run = run;
//# sourceMappingURL=list.test.js.map