WIP: Note editing, markdown to html
[oweals/karmaworld.git] / karmaworld / apps / wysihtml5 / static / wysihtml5 / wysihtml-0.4.17 / test / dom / unwrap_test.js
1 module("wysihtml5.dom.unwrap", {
2   setup: function() {
3     this.inner = "<span>test</span><p>tes2</p>";
4     this.container = document.createElement("div");
5     this.containerInner = document.createElement("div");
6     this.containerInner.innerHTML = this.inner;
7     this.container.appendChild(this.containerInner);
8   }
9 });
10
11 test("Basic test", function() {
12   wysihtml5.dom.unwrap(this.containerInner);
13   equal(this.container.innerHTML, this.inner, "Unwrapping element works splendid.");
14 });