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

Side by Side Diff: LayoutTests/fast/dom/inline-event-attributes-moved.html

Issue 10007027: Merge 113086 - [v8] Fix memory leak in V8LazyEventListener (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months 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 | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/dom/inline-event-attributes-moved-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../js/resources/js-test-pre.js"></script> 2 <script src="../js/resources/js-test-pre.js"></script>
3 <script> 3 <script>
4 4
5 description('Tests that we have the expected form in scope'); 5 description('Tests that we have the expected form in scope');
6 6
7 function dispatchClick(element) 7 function dispatchClick(element)
8 { 8 {
9 var clickEvent = document.createEvent('MouseEvent'); 9 var clickEvent = document.createEvent('MouseEvent');
10 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false , false, false, false, 0, null); 10 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false , false, false, false, 0, null);
11 element.dispatchEvent(clickEvent); 11 element.dispatchEvent(clickEvent);
12 } 12 }
13 13
14 var expected; 14 var expected;
15 var f = document.createElement('form'); 15 var f = document.createElement('form');
16 var i = f.appendChild(document.createElement('input')); 16 var i = f.appendChild(document.createElement('input'));
17 i.setAttribute('onclick', 'expected = typeof action'); 17 i.setAttribute('onclick', 'expected = typeof action');
18 f.removeChild(i); 18 f.removeChild(i);
19 f = null; 19 f = null;
20 gc(); 20 gc();
21 dispatchClick(i); 21 dispatchClick(i);
22 shouldBeEqualToString('expected', 'undefined'); 22 shouldBeEqualToString('expected', 'undefined');
23 23
24 </script> 24 </script>
25 <script src="../js/resources/js-test-post.js"></script> 25 <script src="../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/dom/inline-event-attributes-moved-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698