 
-casper.test.begin "DOM Testing", 4, (test) ->
+casper.test.begin "DOM Testing", 9, (test) ->
 
 
   casper.start()


    # APPENDTO ----------------------------------------------------------------

    # .then ->
    #
    #   @.evaluate ->
    #
    #     junction("body")

    # ATTR --------------------------------------------------------------------
    # BEFORE ------------------------------------------------------------------
    # CHILDREN ----------------------------------------------------------------
    # CLONE -------------------------------------------------------------------
    # CLOSEST -----------------------------------------------------------------

        junction("#test").append("<div id='foo-before'></div>")
        junction("#foo-before").after("<div id='foo-after'></div>")

      testElement = @.evaluate ->
        te = document.getElementById("foo-before")
        temp = te.nextSibling
        return temp

      test.assertEquals testElement.attributes[0].textContent,
                        "foo-after",
                        ["After is successful"]

      return


    # APPEND ------------------------------------------------------------------

    # The APPEND function adds the element as the last child of the selected item

    .then ->

