{"issue":{"created_at":"2011-11-13T20:06:24Z","state":"open","updated_at":"2011-11-20T19:42:51Z","user":{"gravatar_id":"aecc75d15f9f64240292465b9977f209","id":959789,"url":"https://api.github.com/users/kkujala","login":"kkujala","avatar_url":"https://secure.gravatar.com/avatar/aecc75d15f9f64240292465b9977f209?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":6,"body":"To run the unit test open pdf.js/test/unit/unit_test.html in your browser.\r\n\r\nThis requires that https://github.com/pivotal/jasmine is cloned to the same directory level as pdf.js.\r\n\r\nNote that unit_test.html is adapted from\r\nhttps://github.com/pivotal/jasmine/blob/master/lib/jasmine-core/example/SpecRunner.html\r\nwhich is MIT licensed.\r\n\r\nI tried to create as minimal unit test environment as possible. It is manual so no command line support. I think that one can build on top this one. And extend it later on to be part of the Makefile. make unittest?\r\n\r\nWhy Jasmine? Well it seems to be highly valued in various articles. Also browserid folks use it. And in pdfjs chat I got a recommendation to use it. It has in-built mock framework which is great!\r\n\r\nFrom what I have read is that jasmine can with some effort to be run from command line using jasmine-gem and js-test-driver. Of course there are other options as well.\r\n\r\nSo is this something that pdf.js would like to have? I hope yes.","assignee":null,"id":2222921,"number":800,"pull_request":{"patch_url":"https://github.com/mozilla/pdf.js/pull/800.patch","html_url":"https://github.com/mozilla/pdf.js/pull/800","diff_url":"https://github.com/mozilla/pdf.js/pull/800.diff"},"labels":[],"title":"Create first unit test in Jasmine unit test framework.","closed_at":null,"html_url":"https://github.com/mozilla/pdf.js/issues/800","milestone":null,"url":"https://api.github.com/repos/mozilla/pdf.js/issues/800"},"action":"created","comment":{"created_at":"2011-11-20T19:42:51Z","updated_at":"2011-11-20T19:42:51Z","user":{"gravatar_id":"aecc75d15f9f64240292465b9977f209","id":959789,"url":"https://api.github.com/users/kkujala","login":"kkujala","avatar_url":"https://secure.gravatar.com/avatar/aecc75d15f9f64240292465b9977f209?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Jasmine license file added as well.","id":2807109,"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/2807109"}}