aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-bootstrap/src/test
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-05-27 23:16:14 +0200
committerRobert Jaros <rjaros@finn.pl>2020-05-27 23:16:14 +0200
commit7d505bd76eedaf21ef05cfdef7758443f0bad5fc (patch)
treef0007274f6727c2a881dfb15553a53b5514c69e5 /kvision-modules/kvision-bootstrap/src/test
parentdfaac1a5e7dadf5ff2f0830a60c1448af3d5c09a (diff)
downloadkvision-7d505bd76eedaf21ef05cfdef7758443f0bad5fc.tar.gz
kvision-7d505bd76eedaf21ef05cfdef7758443f0bad5fc.tar.bz2
kvision-7d505bd76eedaf21ef05cfdef7758443f0bad5fc.zip
Fix progress bar styles (#155)
Diffstat (limited to 'kvision-modules/kvision-bootstrap/src/test')
-rw-r--r--kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressBarSpec.kt4
-rw-r--r--kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressIndicatorSpec.kt4
2 files changed, 4 insertions, 4 deletions
diff --git a/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressBarSpec.kt b/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressBarSpec.kt
index 5f829da2..ff8ae351 100644
--- a/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressBarSpec.kt
+++ b/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressBarSpec.kt
@@ -39,13 +39,13 @@ class ProgressBarSpec : DomSpec {
root.add(progressBar)
val element = document.getElementById("test")
assertEqualsHtml(
- "<div class=\"progress\"><div class=\"progress-bar progress-bar-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 50%;\">Processing ...</div></div>",
+ "<div class=\"progress\"><div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 50%;\">Processing ...</div></div>",
element?.innerHTML,
"Should render correct progress bar"
)
progressBar.max = 200
assertEqualsHtml(
- "<div class=\"progress\"><div class=\"progress-bar progress-bar-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"200\" style=\"width: 25%;\">Processing ...</div></div>",
+ "<div class=\"progress\"><div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"200\" style=\"width: 25%;\">Processing ...</div></div>",
element?.innerHTML,
"Should render correct progress bar after max value change"
)
diff --git a/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressIndicatorSpec.kt b/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressIndicatorSpec.kt
index fb0dd6c7..658b25fa 100644
--- a/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressIndicatorSpec.kt
+++ b/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/progress/ProgressIndicatorSpec.kt
@@ -38,13 +38,13 @@ class ProgressIndicatorSpec : DomSpec {
root.add(ind)
val element = document.getElementById("test")
assertEqualsHtml(
- "<div class=\"progress-bar progress-bar-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 50%;\"></div>",
+ "<div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 50%;\"></div>",
element?.innerHTML,
"Should render correct progress bar indicator"
)
ind.max = 200
assertEqualsHtml(
- "<div class=\"progress-bar progress-bar-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"200\" style=\"width: 25%;\"></div>",
+ "<div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"200\" style=\"width: 25%;\"></div>",
element?.innerHTML,
"Should render correct progress bar indicator after max value change"
)