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

Side by Side Diff: LayoutTests/fast/dom/gc-attribute-node.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/gc-11.html ('k') | LayoutTests/fast/dom/gc-dom-tree-lifetime.html » ('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 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 2 <link rel="stylesheet" href="../js/resources/js-test-style.css">
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 <body> 4 <body>
5 <script> 5 <script>
6 description('Tests that attribute node wrappers are not prematurely garbage coll ected'); 6 description('Tests that attribute node wrappers are not prematurely garbage coll ected');
7 7
8 var e = document.createElement('div'); 8 var e = document.createElement('div');
9 document.body.appendChild(e); 9 document.body.appendChild(e);
10 e.setAttribute('id', 'd'); 10 e.setAttribute('id', 'd');
11 e.setAttribute('foo', 'bar'); 11 e.setAttribute('foo', 'bar');
12 a = e.getAttributeNode('foo'); 12 a = e.getAttributeNode('foo');
13 a.prop = 'set'; 13 a.prop = 'set';
14 shouldBe('a.prop', '"set"'); 14 shouldBe('a.prop', '"set"');
15 15
16 a = null; 16 a = null;
17 e = null; 17 e = null;
18 gc(); 18 gc();
19 19
20 e = document.body.querySelector('div#d'); 20 e = document.body.querySelector('div#d');
21 a = e.getAttributeNode('foo'); 21 a = e.getAttributeNode('foo');
22 shouldBe('a.prop', '"set"'); 22 shouldBe('a.prop', '"set"');
23 23
24 successfullyParsed = true; 24 successfullyParsed = true;
25 </script> 25 </script>
26 <script src="../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/gc-11.html ('k') | LayoutTests/fast/dom/gc-dom-tree-lifetime.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698