postMessage harness - extend to catch CSS issues.
Change-Id: I0731ae72ba1937916b055882171785ee268e16c4 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86795 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
parent
6305cc70fa
commit
e18fe5e5ef
2 changed files with 13 additions and 5 deletions
|
@ -158,11 +158,16 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h3>Document frame</h3>
|
<h3>Document frame</h3>
|
||||||
|
<h4>If the frame fails to load click <a id="link">here and accept security bits</a></h4>
|
||||||
<iframe id="frame" height="1000" width="1000"></iframe>
|
<iframe id="frame" height="1000" width="1000"></iframe>
|
||||||
|
|
||||||
|
<!-- 127.0.0.2 allows us to test CSS issues -->
|
||||||
<script>
|
<script>
|
||||||
|
var uriBase = "https://127.0.0.2:9980/loleaflet/42/loleaflet.html" + window.location.search;
|
||||||
var iframe = document.getElementById("frame");
|
var iframe = document.getElementById("frame");
|
||||||
iframe.src = "https://localhost:9980/loleaflet/42/loleaflet.html" + window.location.search + "&NotWOPIButIframe=true";
|
iframe.src = uriBase + "&NotWOPIButIframe=true";
|
||||||
|
var msg = document.getElementById("link");
|
||||||
|
link.href = uriBase;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -196,13 +196,16 @@
|
||||||
|
|
||||||
<h3>Document frame</h3>
|
<h3>Document frame</h3>
|
||||||
|
|
||||||
<!-- The hostname and pathnames below are obviously specific to my
|
<h4>If the frame fails to load click <a id="link">here and accept security bits</a></h4>
|
||||||
personal environment and need to be changed appropriately. -->
|
|
||||||
|
|
||||||
<iframe id="frame" height="1000" width="1000"></iframe>
|
<iframe id="frame" height="1000" width="1000"></iframe>
|
||||||
|
|
||||||
|
<!-- 127.0.0.2 allows us to test CSS issues -->
|
||||||
<script>
|
<script>
|
||||||
|
var uriBase = "https://127.0.0.2:9980/loleaflet/42/loleaflet.html" + window.location.search;
|
||||||
var iframe = document.getElementById("frame");
|
var iframe = document.getElementById("frame");
|
||||||
iframe.src = "https://localhost:9980/loleaflet/42/loleaflet.html" + window.location.search + "&NotWOPIButIframe=true";
|
iframe.src = uriBase + "&NotWOPIButIframe=true";
|
||||||
|
var msg = document.getElementById("link");
|
||||||
|
link.href = uriBase;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue