       element          = $compile("<mac-time mac-time-model='model'></mac-time>") $rootScope
       $rootScope.$digest()
 
-      $("input", element).click()
+      $rootScope.$$childHead.clickEvent()
+      $rootScope.$digest()
 
       expect($rootScope.model).toBe "12:00 AM"
 

      $rootScope.$digest()

      input = $("input", element)
      input.click()

      changeInputValue input, "14:41 AM"

      expect(input.hasClass("ng-invalid")).toBeTruthy()

    it "should reset back to the original time when input is invalid - 2", ->
      $rootScope.model = ""

      $rootScope.$digest()

      input = $("input", element)

      $rootScope.$$childHead.clickEvent()
      $rootScope.$digest()

      changeInputValue input, "123"
      $rootScope.$$childHead.blurEvent()
      $rootScope.$digest()

      expect($rootScope.model).toBe("12:00 AM")

  describe "model -> view", ->
    $compile   = null
