Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(86)

Side by Side Diff: LayoutTests/intersection-observer/observer-and-callback-without-js-references.html

Issue 346930043: V1 of making sure that IO doesn't keep document alive longer than it should
Patch Set: Created 5 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/gc.js"></script>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5
6 <style>
7 #target {
8 width: 100px;
9 height: 100px;
10 background-color: green;
11 }
12 </style>
13 <div id="target"></div>
14
15 <script>
16 var target = document.getElementById("target");
17
18 async_test(function(t) {
19 new IntersectionObserver(function(changes) {
20 t.done();
21 }).observe(target);
22 }, "IntersectionObserver callback fires even when the observer and callback have no JS references");
23
24 gc();
25 </script>
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b