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

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

Issue 49063011: Delete js-test-style.css. js-test-pre.js injects the CSS it needs now. (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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <link rel="stylesheet" href="../js/resources/js-test-style.css">
3 <script src="../js/resources/js-test-pre.js"></script> 2 <script src="../js/resources/js-test-pre.js"></script>
4 <body> 3 <body>
5 <script> 4 <script>
6 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');
7 6
8 var e = document.createElement('div'); 7 var e = document.createElement('div');
9 document.body.appendChild(e); 8 document.body.appendChild(e);
10 e.setAttribute('id', 'd'); 9 e.setAttribute('id', 'd');
11 e.setAttribute('foo', 'bar'); 10 e.setAttribute('foo', 'bar');
12 a = e.getAttributeNode('foo'); 11 a = e.getAttributeNode('foo');
13 a.prop = 'set'; 12 a.prop = 'set';
14 shouldBe('a.prop', '"set"'); 13 shouldBe('a.prop', '"set"');
15 14
16 a = null; 15 a = null;
17 e = null; 16 e = null;
18 gc(); 17 gc();
19 18
20 e = document.body.querySelector('div#d'); 19 e = document.body.querySelector('div#d');
21 a = e.getAttributeNode('foo'); 20 a = e.getAttributeNode('foo');
22 shouldBe('a.prop', '"set"'); 21 shouldBe('a.prop', '"set"');
23 22
24 successfullyParsed = true; 23 successfullyParsed = true;
25 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698