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

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

Issue 58533003: Move fast/js/resources files to resources. (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 <script src="../js/resources/js-test-pre.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <body> 3 <body>
4 <script> 4 <script>
5 description('Tests that attribute node wrappers are not prematurely garbage coll ected'); 5 description('Tests that attribute node wrappers are not prematurely garbage coll ected');
6 6
7 var e = document.createElement('div'); 7 var e = document.createElement('div');
8 document.body.appendChild(e); 8 document.body.appendChild(e);
9 e.setAttribute('id', 'd'); 9 e.setAttribute('id', 'd');
10 e.setAttribute('foo', 'bar'); 10 e.setAttribute('foo', 'bar');
11 a = e.getAttributeNode('foo'); 11 a = e.getAttributeNode('foo');
12 a.prop = 'set'; 12 a.prop = 'set';
13 shouldBe('a.prop', '"set"'); 13 shouldBe('a.prop', '"set"');
14 14
15 a = null; 15 a = null;
16 e = null; 16 e = null;
17 gc(); 17 gc();
18 18
19 e = document.body.querySelector('div#d'); 19 e = document.body.querySelector('div#d');
20 a = e.getAttributeNode('foo'); 20 a = e.getAttributeNode('foo');
21 shouldBe('a.prop', '"set"'); 21 shouldBe('a.prop', '"set"');
22 22
23 successfullyParsed = true; 23 successfullyParsed = true;
24 </script> 24 </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