repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
ManualTests
/
leak-cycle-observer-wrapper.html
blob
e813f37bd06bd9ba7dfdbab040d1d303287e8201
1
<!DOCTYPE
html
>
2
3
<p>
4
Tests that reference cycles between the observer and the callback do not
5
create leaks.
6
</p>
7
8
<script>
9
if
(
window
.
testRunner
)
10
testRunner
.
dumpAsText
();
11
12
function
leak
() {
13
var
observer
=
new
WebKitMutationObserver
(
function
() {
observer
.
disconnect
(); });
14
}
15
16
for
(
i
=
0
;
i
<
1000
;
i
++)
leak
();
17
gc
();
18
</script>