{"action":"created","comment":{"url":"https://api.github.com/repos/fluid-project/first-discovery/pulls/comments/28963874","id":28963874,"diff_hunk":"@@ -0,0 +1,268 @@\n+/*!\n+Copyright 2015 OCAD University\n+\n+Licensed under the New BSD license. You may not use this file except in\n+compliance with this License.\n+\n+You may obtain a copy of the License at\n+https://github.com/gpii/universal/LICENSE.txt\n+*/\n+\n+(function ($, fluid) {\n+\n+    \"use strict\";\n+\n+    fluid.registerNamespace(\"gpii.tests.firstDiscovery.usKeymap\");\n+    fluid.registerNamespace(\"gpii.tests.firstDiscovery.keyboardInput\");\n+\n+    gpii.tests.firstDiscovery.charFromKeypressTestCases = [\n+        { keyCode: undefined, expected: \"\"},\n+        { keyCode: null, expected: \"\" },\n+        { keyCode: 33, expected: \"!\" },\n+        { keyCode: 48, expected: \"0\" },\n+        { keyCode: 65, expected: \"A\" },\n+        { keyCode: 97, expected: \"a\" }\n+    ];\n+\n+    jqUnit.test(\"charFromKeypress\", function () {\n+        fluid.each(gpii.tests.firstDiscovery.charFromKeypressTestCases, function (testcase) {\n+            var msg = \"keyCode \" + testcase.keyCode + \" expect \\\"\" + testcase.expected + \"\\\"\";\n+            var actual = gpii.firstDiscovery.charFromKeypress({ which: testcase.keyCode });\n+            jqUnit.assertEquals(msg, testcase.expected, actual);\n+        });\n+    });\n+\n+    jqUnit.test(\"usKeymap.isShiftEvent\", function () {\n+        var keymap = gpii.firstDiscovery.usKeymap();\n+        jqUnit.assertTrue(\"true for shift\", keymap.isShiftEvent({ which: keymap.shiftKeyCode }));\n+        jqUnit.assertFalse(\"false for non-shift\", keymap.isShiftEvent({ which: 0 }));\n+    });\n+\n+    gpii.tests.firstDiscovery.usKeymap.nonLowerCase = [\n+        String.fromCharCode(96),\n+        String.fromCharCode(123),","path":"tests/js/keyboardInputTests.js","position":43,"original_position":43,"commit_id":"69ce1eeddf3c6fc58b6a5c9c02836d4bec5e7c64","original_commit_id":"69ce1eeddf3c6fc58b6a5c9c02836d4bec5e7c64","user":{"login":"jobara","id":556024,"avatar_url":"https://avatars.githubusercontent.com/u/556024?v=3","gravatar_id":"","url":"https://api.github.com/users/jobara","html_url":"https://github.com/jobara","followers_url":"https://api.github.com/users/jobara/followers","following_url":"https://api.github.com/users/jobara/following{/other_user}","gists_url":"https://api.github.com/users/jobara/gists{/gist_id}","starred_url":"https://api.github.com/users/jobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobara/subscriptions","organizations_url":"https://api.github.com/users/jobara/orgs","repos_url":"https://api.github.com/users/jobara/repos","events_url":"https://api.github.com/users/jobara/events{/privacy}","received_events_url":"https://api.github.com/users/jobara/received_events","type":"User","site_admin":false},"body":"could you leave comments for what these char codes represent?","created_at":"2015-04-23T13:53:22Z","updated_at":"2015-04-23T13:53:22Z","html_url":"https://github.com/fluid-project/first-discovery/pull/34#discussion_r28963874","pull_request_url":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/fluid-project/first-discovery/pulls/comments/28963874"},"html":{"href":"https://github.com/fluid-project/first-discovery/pull/34#discussion_r28963874"},"pull_request":{"href":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34","id":33883399,"html_url":"https://github.com/fluid-project/first-discovery/pull/34","diff_url":"https://github.com/fluid-project/first-discovery/pull/34.diff","patch_url":"https://github.com/fluid-project/first-discovery/pull/34.patch","issue_url":"https://api.github.com/repos/fluid-project/first-discovery/issues/34","number":34,"state":"open","locked":false,"title":"FLOE-301: Implement a sticky keys simulator","user":{"login":"simonbates","id":470482,"avatar_url":"https://avatars.githubusercontent.com/u/470482?v=3","gravatar_id":"","url":"https://api.github.com/users/simonbates","html_url":"https://github.com/simonbates","followers_url":"https://api.github.com/users/simonbates/followers","following_url":"https://api.github.com/users/simonbates/following{/other_user}","gists_url":"https://api.github.com/users/simonbates/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbates/subscriptions","organizations_url":"https://api.github.com/users/simonbates/orgs","repos_url":"https://api.github.com/users/simonbates/repos","events_url":"https://api.github.com/users/simonbates/events{/privacy}","received_events_url":"https://api.github.com/users/simonbates/received_events","type":"User","site_admin":false},"body":"http://issues.fluidproject.org/browse/FLOE-301\r\n","created_at":"2015-04-22T17:51:18Z","updated_at":"2015-04-23T13:53:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5ddd6dff654ac91605f34025db75ce8317f9430","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34/commits","review_comments_url":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34/comments","review_comment_url":"https://api.github.com/repos/fluid-project/first-discovery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fluid-project/first-discovery/issues/34/comments","statuses_url":"https://api.github.com/repos/fluid-project/first-discovery/statuses/69ce1eeddf3c6fc58b6a5c9c02836d4bec5e7c64","head":{"label":"simonbates:FLOE-301","ref":"FLOE-301","sha":"69ce1eeddf3c6fc58b6a5c9c02836d4bec5e7c64","user":{"login":"simonbates","id":470482,"avatar_url":"https://avatars.githubusercontent.com/u/470482?v=3","gravatar_id":"","url":"https://api.github.com/users/simonbates","html_url":"https://github.com/simonbates","followers_url":"https://api.github.com/users/simonbates/followers","following_url":"https://api.github.com/users/simonbates/following{/other_user}","gists_url":"https://api.github.com/users/simonbates/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbates/subscriptions","organizations_url":"https://api.github.com/users/simonbates/orgs","repos_url":"https://api.github.com/users/simonbates/repos","events_url":"https://api.github.com/users/simonbates/events{/privacy}","received_events_url":"https://api.github.com/users/simonbates/received_events","type":"User","site_admin":false},"repo":{"id":33614296,"name":"first-discovery","full_name":"simonbates/first-discovery","owner":{"login":"simonbates","id":470482,"avatar_url":"https://avatars.githubusercontent.com/u/470482?v=3","gravatar_id":"","url":"https://api.github.com/users/simonbates","html_url":"https://github.com/simonbates","followers_url":"https://api.github.com/users/simonbates/followers","following_url":"https://api.github.com/users/simonbates/following{/other_user}","gists_url":"https://api.github.com/users/simonbates/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbates/subscriptions","organizations_url":"https://api.github.com/users/simonbates/orgs","repos_url":"https://api.github.com/users/simonbates/repos","events_url":"https://api.github.com/users/simonbates/events{/privacy}","received_events_url":"https://api.github.com/users/simonbates/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonbates/first-discovery","description":"A preferences editor tool that helps users discovery their initial preferences.","fork":true,"url":"https://api.github.com/repos/simonbates/first-discovery","forks_url":"https://api.github.com/repos/simonbates/first-discovery/forks","keys_url":"https://api.github.com/repos/simonbates/first-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonbates/first-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonbates/first-discovery/teams","hooks_url":"https://api.github.com/repos/simonbates/first-discovery/hooks","issue_events_url":"https://api.github.com/repos/simonbates/first-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/simonbates/first-discovery/events","assignees_url":"https://api.github.com/repos/simonbates/first-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/simonbates/first-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/simonbates/first-discovery/tags","blobs_url":"https://api.github.com/repos/simonbates/first-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonbates/first-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonbates/first-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonbates/first-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonbates/first-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/simonbates/first-discovery/languages","stargazers_url":"https://api.github.com/repos/simonbates/first-discovery/stargazers","contributors_url":"https://api.github.com/repos/simonbates/first-discovery/contributors","subscribers_url":"https://api.github.com/repos/simonbates/first-discovery/subscribers","subscription_url":"https://api.github.com/repos/simonbates/first-discovery/subscription","commits_url":"https://api.github.com/repos/simonbates/first-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonbates/first-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonbates/first-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonbates/first-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonbates/first-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/simonbates/first-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonbates/first-discovery/merges","archive_url":"https://api.github.com/repos/simonbates/first-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonbates/first-discovery/downloads","issues_url":"https://api.github.com/repos/simonbates/first-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/simonbates/first-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/simonbates/first-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/simonbates/first-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonbates/first-discovery/labels{/name}","releases_url":"https://api.github.com/repos/simonbates/first-discovery/releases{/id}","created_at":"2015-04-08T15:07:53Z","updated_at":"2015-04-22T18:25:11Z","pushed_at":"2015-04-22T18:25:11Z","git_url":"git://github.com/simonbates/first-discovery.git","ssh_url":"git@github.com:simonbates/first-discovery.git","clone_url":"https://github.com/simonbates/first-discovery.git","svn_url":"https://github.com/simonbates/first-discovery","homepage":null,"size":1223,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fluid-project:master","ref":"master","sha":"7b258ae39378254baa4cc6d124e01d043443797c","user":{"login":"fluid-project","id":560119,"avatar_url":"https://avatars.githubusercontent.com/u/560119?v=3","gravatar_id":"","url":"https://api.github.com/users/fluid-project","html_url":"https://github.com/fluid-project","followers_url":"https://api.github.com/users/fluid-project/followers","following_url":"https://api.github.com/users/fluid-project/following{/other_user}","gists_url":"https://api.github.com/users/fluid-project/gists{/gist_id}","starred_url":"https://api.github.com/users/fluid-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluid-project/subscriptions","organizations_url":"https://api.github.com/users/fluid-project/orgs","repos_url":"https://api.github.com/users/fluid-project/repos","events_url":"https://api.github.com/users/fluid-project/events{/privacy}","received_events_url":"https://api.github.com/users/fluid-project/received_events","type":"Organization","site_admin":false},"repo":{"id":29699220,"name":"first-discovery","full_name":"fluid-project/first-discovery","owner":{"login":"fluid-project","id":560119,"avatar_url":"https://avatars.githubusercontent.com/u/560119?v=3","gravatar_id":"","url":"https://api.github.com/users/fluid-project","html_url":"https://github.com/fluid-project","followers_url":"https://api.github.com/users/fluid-project/followers","following_url":"https://api.github.com/users/fluid-project/following{/other_user}","gists_url":"https://api.github.com/users/fluid-project/gists{/gist_id}","starred_url":"https://api.github.com/users/fluid-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluid-project/subscriptions","organizations_url":"https://api.github.com/users/fluid-project/orgs","repos_url":"https://api.github.com/users/fluid-project/repos","events_url":"https://api.github.com/users/fluid-project/events{/privacy}","received_events_url":"https://api.github.com/users/fluid-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fluid-project/first-discovery","description":"A preferences editor tool that helps users discovery their initial preferences.","fork":false,"url":"https://api.github.com/repos/fluid-project/first-discovery","forks_url":"https://api.github.com/repos/fluid-project/first-discovery/forks","keys_url":"https://api.github.com/repos/fluid-project/first-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fluid-project/first-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fluid-project/first-discovery/teams","hooks_url":"https://api.github.com/repos/fluid-project/first-discovery/hooks","issue_events_url":"https://api.github.com/repos/fluid-project/first-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/fluid-project/first-discovery/events","assignees_url":"https://api.github.com/repos/fluid-project/first-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/fluid-project/first-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/fluid-project/first-discovery/tags","blobs_url":"https://api.github.com/repos/fluid-project/first-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fluid-project/first-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fluid-project/first-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/fluid-project/first-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fluid-project/first-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/fluid-project/first-discovery/languages","stargazers_url":"https://api.github.com/repos/fluid-project/first-discovery/stargazers","contributors_url":"https://api.github.com/repos/fluid-project/first-discovery/contributors","subscribers_url":"https://api.github.com/repos/fluid-project/first-discovery/subscribers","subscription_url":"https://api.github.com/repos/fluid-project/first-discovery/subscription","commits_url":"https://api.github.com/repos/fluid-project/first-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/fluid-project/first-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/fluid-project/first-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/fluid-project/first-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/fluid-project/first-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/fluid-project/first-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fluid-project/first-discovery/merges","archive_url":"https://api.github.com/repos/fluid-project/first-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fluid-project/first-discovery/downloads","issues_url":"https://api.github.com/repos/fluid-project/first-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/fluid-project/first-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/fluid-project/first-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/fluid-project/first-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fluid-project/first-discovery/labels{/name}","releases_url":"https://api.github.com/repos/fluid-project/first-discovery/releases{/id}","created_at":"2015-01-22T20:43:21Z","updated_at":"2015-04-22T13:47:39Z","pushed_at":"2015-04-22T17:55:49Z","git_url":"git://github.com/fluid-project/first-discovery.git","ssh_url":"git@github.com:fluid-project/first-discovery.git","clone_url":"https://github.com/fluid-project/first-discovery.git","svn_url":"https://github.com/fluid-project/first-discovery","homepage":null,"size":2086,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34"},"html":{"href":"https://github.com/fluid-project/first-discovery/pull/34"},"issue":{"href":"https://api.github.com/repos/fluid-project/first-discovery/issues/34"},"comments":{"href":"https://api.github.com/repos/fluid-project/first-discovery/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/fluid-project/first-discovery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fluid-project/first-discovery/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/fluid-project/first-discovery/statuses/69ce1eeddf3c6fc58b6a5c9c02836d4bec5e7c64"}}}}