Home | History | Annotate | Download | only in script-tests
      1 description("This test checks that DOMNodeRemovedEvent is emitted once (and only once).");
      2 
      3 var div = document.createElement("div");
      4 document.body.appendChild(div);
      5 
      6 var count = 0;
      7 document.body.addEventListener("DOMNodeRemoved", function () { count++; }, false);
      8 document.body.removeChild(div);
      9 
     10 shouldBe("count", "1");
     11 
     12 var successfullyParsed = true;
     13