Directory

test-fixture - Vaadin Add-on Directory

(no summary available) test-fixture - Vaadin Add-on Directory
[![Published on NPM](https://img.shields.io/npm/v/@polymer/test-fixture.svg)](https://www.npmjs.com/package/@polymer/test-fixture) [![Build status](https://travis-ci.org/PolymerElements/test-fixture.svg?branch=master)](https://travis-ci.org/PolymerElements/test-fixture) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/test-fixture) ##<test-fixture> The `` element can simplify the exercise of consistently resetting a test suite's DOM. See: [Documentation](https://www.webcomponents.org/element/@polymer/test-fixture). To use it, wrap the test suite's DOM as a template: ```html ``` Now, the `` element can be used to generate a copy of its template: ```html ``` Fixtured elements can be cleaned up by calling `restore` on the ``: ```javascript afterEach(function () { document.getElementById('SomeElementFixture').restore(); // has been removed }); ``` `` will create fixtures from all of its immediate `