forked from glow/glow1
/
index.html
53 lines (46 loc) · 1.47 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>glow.net.get</title>
<script type="text/javascript" src="../includes/manualtests.js"></script>
<!-- loading gloader, to change the location of gloader, edit manualtests.js -->
<script type="text/javascript">// <![CDATA[
document.write(
'<script type="text/javascript" src="' + manualTests.config.gloaderPath + '"> \
gloader.use("glow", { \
$map: manualTests.config.mapPath, \
$base: manualTests.config.basePath \
}); \
<' + '/script>'
);
// ]]></script>
<script type="text/javascript">gloader.load(['glow', '@VERSION@', 'glow.data', 'glow.net'])</script>
</head>
<body>
<h1>glow.net.get</h1>
<h2>Memory Leak Test</h2>
<ol>
<li><a href="#" id="startTest">Start test</a></li>
<li>
A file will be fetched every 500ms. Memory usage should not creep up.
Logging has been commented out to avoid memory creep caused by adding elements
to the logger.
</li>
</ol>
<script type="text/javascript" class="showSrc">
document.getElementById('startTest').onclick = function() {
setInterval(function() {
glow.net.get('file.txt', {
onLoad: function() {
//manualTests.log('got file');
}
});
}, 500);
return false;
};
</script>
<script type="text/javascript">manualTests.showSrc();</script>
<script type="text/javascript">manualTests.log('Logging enabled');</script>
</body>
</html>