           filename = "#{__dirname}/data/random.txt"
           return browser.attach("my_file", filename)
         .then(done, done)
-          
+
       it "should call callback", ->
         browser.assert.text "title", "Upload done"
       it "should have filename", ->

              <script src="/jquery.js"></script>
              <script>
                $(function() {
                  $("form").submit(function() { 
                    return false;
                  })
                })

      browser.visit("/forms/inputs", done)

    it "should return empty string if name attribute not set", ->
      for tagName in ["form", "input", "textarea", "select", "button"]
        browser.assert.attribute tagName, "name", null
    it "should return empty string if value attribute not set", ->
      for tagName in ["input", "textarea", "select", "button"]
        assert.equal browser.query(tagName).getAttribute("value"), null
        assert.equal browser.query(tagName).value, ""
    it "should return empty string if id attribute not set", ->
      for tagName in ["form", "input", "textarea", "select", "button"]
        assert.equal browser.query(tagName).getAttribute("id"), null
        assert.equal browser.query(tagName).id, ""

