blob: 925df6511672da284c9c1b1ac0ce8c5890bcb41c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<script>
var element;
function test(type)
{
element = document.createElement(type);
var relList = element.relList;
element.relList.life = 42;
shouldEvaluateTo('element.relList.life', 42);
relList = null;
gc();
shouldEvaluateTo('element.relList.life', 42);
}
debug('Tests relList gc for anchor element');
test('a');
debug('Tests relList gc for area element');
test('area');
debug('Tests relList gc for link element');
test('link');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>