Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / inline-event-attributes-lookup-removed.html
blob83d90d904fbe40ce4d2cbbe37e1a1f56f23623d9
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
5 description('Tests that lookup in inline event handlers keeps references alive');
7 function dispatchClick(element)
9 var clickEvent = document.createEvent('MouseEvent');
10 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0,false, false, false, false, 0, null);
11 element.dispatchEvent(clickEvent);
14 var result;
15 var custom = 'FAIL';
17 var div1 = document.createElement('div');
18 div1.custom = 'PASS';
19 div1.setAttribute('onclick', 'result = custom');
21 var div2 = document.createElement('div');
22 div2.onclick = div1.onclick;
24 div1 = null;
25 gc();
27 dispatchClick(div2);
28 shouldBeEqualToString('result', 'PASS');
30 </script>