{
  "name": "happen",
  "version": "0.1.2",
  "description": "real browser events",
  "main": "src/happen.js",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/tmcw/happen.git"
  },
  "keywords": [
    "testing",
    "browser"
  ],
  "devDependencies": {
    "mocha": "~1.7.4",
    "chai": "1.4.2"
  },
  "testling": {
    "browsers": [
      "ie7",
      "ie8",
      "ie9",
      "opera/12.0",
      "firefox/16",
      "firefox/17",
      "chrome/22",
      "chrome/23",
      "opera/12",
      "safari/5.1"
    ],
    "harness": "mocha",
    "files": [
      "jquery/jquery.js",
      "test/happen.js"
    ]
  },
  "author": {
    "name": "Tom MacWright"
  },
  "license": "BSD",
  "readme": "**happen** wraps the `createEvent` DOM API to make real\nevent mocking in-browser palatable.\n\n## Installation\n\nRaw:\n\n    wget https://raw.github.com/tmcw/happen/master/src/happen.js\n\nWith [component](https://github.com/component/component)\n\n    component install tmcw/happen\n\n## Native API\n\n```javascript\nvar element = document.getElementById('map');\n\n// click shortcut\nhappen.click(element);\n\n// dblclick shortcut\nhappen.dblclick(element);\n\n// custom options\nhappen.dblclick(element, { shift: true });\n```\n\n## jQuery Plugin\n\n```javascript\n// Shortcut - 'click' is shorthand for { type: 'click' }\n$('.foo').happen('click');\n\n// Longhand - specify any sort of properties\n$('.foo').happen({ type: 'keyup', keyCode: 50 });\n\n// Works on any jQuery selection\n$('.foo, .bar').happen('dblclick');\n```\n\nShortcuts:\n\n* `happen.click`\n* `happen.dblclick`\n* `happen.mousedown`\n* `happen.mouseup`\n* `happen.mousemove`\n* `happen.keydown`\n* `happen.keyup`\n* `happen.keypress`\n\nUse it with a testing framework, like [Jasmine](http://pivotal.github.com/jasmine/)\nor [Mocha](http://visionmedia.github.com/mocha/).\n\n[![](http://ci.testling.com/tmcw/happen.png)](http://ci.testling.com/tmcw/happen)\n\n(IE tests failing due to Chai)\n\n## See Also\n\n* [trigger-event](https://github.com/adamsanderson/trigger-event)\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/tmcw/happen/issues"
  },
  "_id": "happen@0.1.2",
  "_from": "happen@~0.1.2"
}
