mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Add manual test for #3011
This commit is contained in:
parent
ca2692a0dc
commit
0a5975d046
3 changed files with 54 additions and 0 deletions
29
test/manual/iframe-inner.html
Normal file
29
test/manual/iframe-inner.html
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
</head>
|
||||||
|
<body style="height: 100%">
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
position: absolute;
|
||||||
|
left: 10px;
|
||||||
|
top: 10px;
|
||||||
|
width: 400px;
|
||||||
|
height: 200px;
|
||||||
|
border: 1px solid silver;
|
||||||
|
"
|
||||||
|
id="editor"
|
||||||
|
></div>
|
||||||
|
|
||||||
|
<script src="dev-setup.js"></script>
|
||||||
|
<script>
|
||||||
|
loadEditor(function () {
|
||||||
|
monaco.editor.create(document.getElementById('editor'), {
|
||||||
|
value: `function hello()\n{\treturn 5;\n}`,
|
||||||
|
language: 'javascript'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
23
test/manual/iframe.html
Normal file
23
test/manual/iframe.html
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>Monaco Editor in iframe</h2>
|
||||||
|
|
||||||
|
<input type="text" style="position: absolute; top: 60px; left: 20px" />
|
||||||
|
|
||||||
|
<iframe
|
||||||
|
src="./iframe-inner.html"
|
||||||
|
style="
|
||||||
|
position: absolute;
|
||||||
|
left: 20px;
|
||||||
|
top: 100px;
|
||||||
|
width: calc(100% - 40px);
|
||||||
|
height: 300px;
|
||||||
|
border: 1px solid silver;
|
||||||
|
"
|
||||||
|
></iframe>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
<a class="loading-opts" href="./diff.html">[Diff]</a>  | 
|
<a class="loading-opts" href="./diff.html">[Diff]</a>  | 
|
||||||
<a class="loading-opts" href="./typescript/index.html">[TypeScript]</a>  | 
|
<a class="loading-opts" href="./typescript/index.html">[TypeScript]</a>  | 
|
||||||
<a class="loading-opts" href="./typescript/custom-worker.html">[TS Worker]</a>
|
<a class="loading-opts" href="./typescript/custom-worker.html">[TS Worker]</a>
|
||||||
|
 | 
|
||||||
|
<a class="loading-opts" href="./iframe.html">[iframe]</a>
|
||||||
<br /> | 
|
<br /> | 
|
||||||
<a class="loading-opts" href="./cross-origin.html">[cross origin]</a>  | 
|
<a class="loading-opts" href="./cross-origin.html">[cross origin]</a>  | 
|
||||||
<a class="loading-opts" href="./mouse-fixed.html">[fixed element]</a>  | 
|
<a class="loading-opts" href="./mouse-fixed.html">[fixed element]</a>  | 
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue