Skip to content

Commit 400c028

Browse files
author
nw
committed
add new test case
1 parent f6c7f79 commit 400c028

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

tests/manual_tests/webview/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<html>
2+
3+
<head>
4+
<title>Webview</title>
5+
</head>
6+
7+
<body>
8+
<p class="indicator"></p>
9+
<!-- <webview id="foo" src="http://www.google.com/" style="width:400; height:300"></webview> -->
10+
<webview id="foo" src="http://www.monocubed.com/2010/07/27/galactic-inbox/" partition="persist:trusted-audio"></webview>
11+
<script type="text/javascript">
12+
onload = function () {
13+
var webview = document.getElementById("foo");
14+
var indicator = document.querySelector(".indicator");
15+
16+
var loadstart = function() {
17+
indicator.innerText = "loading...";
18+
}
19+
var loadstop = function() {
20+
indicator.innerText = "";
21+
}
22+
webview.addEventListener("loadstart", loadstart);
23+
webview.addEventListener("loadstop", loadstop);
24+
}
25+
</script>
26+
</body>
27+
28+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "WebView",
3+
"main": "index.html"
4+
}

0 commit comments

Comments
 (0)