;
    element.name = 'test-name';
    shadowRoot.appendChild(element);
    assert_false('test-name' in window);
}

var namedElements = [
    'a', 'applet', 'area', 'embed', 'form', 'frameset', 'img', 'object'
];

var nameAttributeTestParameter = namedElements.map(function (elementName) {
    return [
        '"' + elementName + '" element with name attribute in a shadow tree ' +
        'should not be accessible from window object\'s named property.',
        elementName
    ];
});

generate_tests(testNameA