Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/MutationObserver/mutation-and-deletion-race.html

Issue 1463433002: Use RefPtr for MutationObserver in MutationObserverInterestGroup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the test Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/MutationObserver/mutation-and-deletion-race-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <body></body>
4 <script>
5 description('Test case that a MutationObserver is deleted while events are colle cted for it. crbug.com/557981');
6
7 var div = document.createElement('div');
8 var div2 = document.createElement('div');
9 document.body.appendChild(div);
10
11 observer = new MutationObserver(function() {});
12 observer.observe(div, {childList: true});
13
14 var script = document.createElement('script');
15 script.textContent = 'unregister_observer()';
16 div2.appendChild(script);
17 div.appendChild(div2);
18
19 function unregister_observer() {
20 observer.disconnect();
21 delete observer;
22 gc();
23 }
24 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/MutationObserver/mutation-and-deletion-race-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698