* fix: Access document.activeElement through a function that eats errors for IE (#2075) * test: inline iframe.js so ospec doesn't try to run it
This commit is contained in:
parent
b0030047a7
commit
d6489e3b3f
5 changed files with 396 additions and 341 deletions
24
render/tests/manual/iframe.html
Normal file
24
render/tests/manual/iframe.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="../../../mithril.js"></script>
|
||||
<script>
|
||||
var count = 0
|
||||
|
||||
var Button = {
|
||||
view: function() {
|
||||
return m(
|
||||
"button",
|
||||
{onclick: function() { count += 1 }},
|
||||
"Inside the iframe: " + count)
|
||||
}
|
||||
}
|
||||
|
||||
m.mount(document.getElementById("root"), Button)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
9
render/tests/manual/index.html
Normal file
9
render/tests/manual/index.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
Various parent website content.
|
||||
There should be a clickable button below, which is inside an iframe containing a mithril app:
|
||||
<div>
|
||||
<iframe src="./iframe.html"></iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue