Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / gc-attribute-node.html
blob61cd9b2eeb0b330fc2e4307751aad6a264614abb
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <body>
4 <script>
5 description('Tests that attribute node wrappers are not prematurely garbage collected');
7 var e = document.createElement('div');
8 document.body.appendChild(e);
9 e.setAttribute('id', 'd');
10 e.setAttribute('foo', 'bar');
11 a = e.getAttributeNode('foo');
12 a.prop = 'set';
13 shouldBe('a.prop', '"set"');
15 a = null;
16 e = null;
17 gc();
19 e = document.body.querySelector('div#d');
20 a = e.getAttributeNode('foo');
21 shouldBe('a.prop', '"set"');
23 successfullyParsed = true;
24 </script>