diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-04-25 08:04:37 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-04-25 08:04:37 +0200 |
commit | 76c436567b87672609879a11762202599ed27af4 (patch) | |
tree | 4d996db7ce260b1d50d5e51cb2207be3aad5e447 | |
parent | 810a3abf13e18570d35808a1172dd34f516c0493 (diff) | |
download | kvision-76c436567b87672609879a11762202599ed27af4.tar.gz kvision-76c436567b87672609879a11762202599ed27af4.tar.bz2 kvision-76c436567b87672609879a11762202599ed27af4.zip |
Unit test fix.
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/window/WindowSpec.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/window/WindowSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/window/WindowSpec.kt index 2ef56830..fde2335d 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/window/WindowSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/window/WindowSpec.kt @@ -38,13 +38,13 @@ class WindowSpec : DomSpec { val id = window.id val element = document.getElementById("test") assertEqualsHtml( - "<div class=\"modal-content kv-window\" id=\"$id\" style=\"width: auto; position: absolute; z-index: 1001; overflow: hidden;\"><div class=\"modal-header\"><h4 class=\"modal-title\">Window title</h4></div><div style=\"height: auto; overflow: auto;\"></div></div>", + "<div class=\"modal-content kv-window\" id=\"$id\" style=\"width: auto; position: absolute; z-index: 901; overflow: hidden;\"><div class=\"modal-header\"><h4 class=\"modal-title\">Window title</h4></div><div style=\"height: auto; overflow: auto;\"></div></div>", element?.innerHTML, "Should render floating window without resizable handler" ) window.isResizable = true assertEqualsHtml( - "<div class=\"modal-content kv-window\" id=\"$id\" style=\"width: auto; position: absolute; z-index: 1001; overflow: hidden; resize: both; height: 10px;\"><div class=\"modal-header\"><h4 class=\"modal-title\">Window title</h4></div><div style=\"height: auto; overflow: auto; margin-bottom: 11px;\"></div><object style=\"display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;\" class=\"resize-sensor\" type=\"text/html\" data=\"about:blank\"></object></div>", + "<div class=\"modal-content kv-window\" id=\"$id\" style=\"width: auto; position: absolute; z-index: 901; overflow: hidden; resize: both; height: 10px;\"><div class=\"modal-header\"><h4 class=\"modal-title\">Window title</h4></div><div style=\"height: auto; overflow: auto; margin-bottom: 11px;\"></div><object style=\"display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;\" class=\"resize-sensor\" type=\"text/html\" data=\"about:blank\"></object></div>", element?.innerHTML, "Should render floating window with resizable handler" ) |