title: How to programmatically trigger doubletap event in ionic?
body: <p>How can I do it? I already looked into ionic forum, google results, and didn't find anything useful. Also, I already tried triggering <code>dblclick</code>, <code>dbltap</code>, <code>doubletap</code>, <code>doubleClick</code>, and even multiple <code>tap</code> and <code>click</code> events, but nothing seems to work.</p>
  <p>I know some events that I used don't even exist, I was just trying to see if ionic would recognize them somehow. Also, I tried the click events because the app runs just fine in the browser, so I thought it could work in the specs as well.</p>
  <p>If it helps, I need this to unit test my feature. I have an <code>ion-list</code>, and when an user double taps an <code>ion-item</code>, it marks the item as checked. My markup currently look like this:</p>
  <pre><code>&lt;ion-item on-double-tap=&quot;ctrl.toggleProductConfirmation(product)&quot; ...
  </code></pre>
  <p>And my spec, like this:</p>
  <pre><code>describe('when checking an item', function() {
    beforeEach(function() {
      this.element.find('ion-item').eq(0).trigger('doubletap');
    });
  
  ** specs here **
  </code></pre>
  <p>One last detail: I use phantom JS to run my specs.</p>