diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-01-23 11:00:00 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-01-23 11:00:00 +0100 |
commit | 48153da7cd97c57a60ca1032d19cdec0714c4c04 (patch) | |
tree | 45ab0bcf19bcb0ad205ad4422d10d5be75f10407 /src/test/kotlin | |
parent | 6c8d768508142c8a6a672b94311c8e9257f15735 (diff) | |
download | kvision-48153da7cd97c57a60ca1032d19cdec0714c4c04.tar.gz kvision-48153da7cd97c57a60ca1032d19cdec0714c4c04.tar.bz2 kvision-48153da7cd97c57a60ca1032d19cdec0714c4c04.zip |
Data container enhancements and fixes.
Diffstat (limited to 'src/test/kotlin')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt index 2cf3160d..931294d5 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt @@ -26,6 +26,7 @@ import pl.treksoft.kvision.data.BaseDataComponent import pl.treksoft.kvision.data.DataContainer import pl.treksoft.kvision.html.Label import pl.treksoft.kvision.panel.Root +import pl.treksoft.kvision.panel.VPanel import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test @@ -42,7 +43,7 @@ class DataContainerSpec : DomSpec { } val model = observableListOf(Model("First"), Model("Second")) - val container = DataContainer(model, { m, _, _ -> Label(m.value) }) + val container = DataContainer(model, { m, _, _ -> Label(m.value) }, VPanel()) root.add(container) val element = document.getElementById("test") assertEqualsHtml( |