Skip to content

Commit 8d30578

Browse files
committed
test: inline iframe.js so ospec doesn't try to run it
1 parent a34f60c commit 8d30578

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

render/tests/manual/iframe.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
<meta charset="utf-8">
55
</head>
66
<body>
77
<div id="root"></div>
88
<script src="../../../mithril.js"></script>
9-
<script src="./iframe.js"></script>
9+
<script>
10+
var count = 0
11+
12+
var Button = {
13+
view: function() {
14+
return m(
15+
"button",
16+
{onclick: function() { count += 1 }},
17+
"Inside the iframe: " + count)
18+
}
19+
}
20+
21+
m.mount(document.getElementById("root"), Button)
22+
</script>
1023
</body>
1124
</html>

render/tests/manual/iframe.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)