1 module("wysihtml5.dom.hasElementWithTagName", {
4 while (iframe = document.querySelector("iframe.wysihtml5-sandbox")) {
5 iframe.parentNode.removeChild(iframe);
11 asyncTest("Basic test", function() {
14 new wysihtml5.dom.Sandbox(function(sandbox) {
15 var doc = sandbox.getDocument(),
16 tempElement = doc.createElement("i");
17 ok(!wysihtml5.dom.hasElementWithTagName(doc, "I"));
18 doc.body.appendChild(tempElement);
19 ok(wysihtml5.dom.hasElementWithTagName(doc, "I"));
20 tempElement.parentNode.removeChild(tempElement);
21 ok(!wysihtml5.dom.hasElementWithTagName(doc, "I"));
24 }).insertInto(document.body);