Added UI tests for all HTML operations

This commit is contained in:
n1474335 2023-03-08 17:44:51 +00:00
parent 36aafb9246
commit 7eda2fd4a6
6 changed files with 131 additions and 55 deletions

View file

@ -90,7 +90,20 @@ class ShowOnMap extends Operation {
leafletUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.js",
leafletCssUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.css";
return `<link rel="stylesheet" href="${leafletCssUrl}" crossorigin=""/>
<style>#output-html { white-space: normal; padding: 0; }</style>
<style>
#output-text .cm-content,
#output-text .cm-line,
#output-html {
display: block;
white-space: normal;
padding: 0;
height: 100%;
}
#output-text .cm-line .cm-widgetBuffer,
#output-text .cm-line br {
display: none;
}
</style>
<div id="presentedMap" style="width: 100%; height: 100%;"></div>
<script type="text/javascript">
var mapscript = document.createElement('script');