blob: 057100a93f6271f723e0eeb1d1be73c965dd69c6 (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<script>
function start() {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
iframeElmt = document.createElement('iframe');
iframeElmt.src = 'resources/empty.xml';
window.setTimeout('window.top.do_test()', 0);
}
function do_test() {
window.top.cb_onload_count = 0;
window.top.conce = function() {
window.top.cb_onload_count++;
var f = eval('window.top.cb_onload_' + window.top.cb_onload_count);
if (f) return f(arguments, this);
};
iframeElmt.onload = window.top.conce;
document.body.appendChild(iframeElmt);
}
function cb_onload_1() {
iframeElmt = arguments[1];
iframeElmt.src = 'javascript:window.top.cb_scriptsrc();';
}
function cb_scriptsrc() {
return 'X';
}
function cb_onload_2() {
gc();
if (window.testRunner) {
testRunner.notifyDone();
}
}
</script>
</head>
<body onload="start()">
<p>Test PASSES if it does not crash in ASAN builds.</p>
</body>
</html>
|