@@ -321,7 +321,16 @@ TestCase {
321321 event.commit()
322322 }
323323
324+ /*! \brief Tap the item with a touch event.
325+
326+ \param item The item to be tapped
327+ \param x The x coordinate of the tap, defaults to horizontal center
328+ \param y The y coordinate of the tap, defaults to vertical center
329+ */
324330 function tap(item, x, y) {
331+ if (typeof x !== "number") x = item.width / 2;
332+ if (typeof y !== "number") y = item.height / 2;
333+
325334 var root = fetchRootItem(item)
326335 var rootPoint = item.mapToItem(root, x, y)
327336