diff --git a/README.md b/README.md index 5effe3b..b0b5778 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,144 @@ + +##<test-fixture> + + + +The `` element can simplify the exercise of consistently +resetting a test suite's DOM. To use it, wrap the test suite's DOM as a template: + +```html + + + +``` + +Now, the `` element can be used to generate a copy if 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 `