{"action":"created","comment":{"url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/comments/51513418","id":51513418,"diff_hunk":"@@ -91,12 +103,53 @@\n           menubar.selected = 0;\n           menubar.items[0].click();\n           setTimeout(function() {\n-            assert.equal(document.activeElement, menubar.items[0], 'document.activeElement is last activated item');\n+            assert.equal(Polymer.dom(document).activeElement, menubar.items[0], 'document.activeElement is last activated item');\n             done();\n           // wait for async in _onFocus\n           }, 200);\n         });\n \n+        suite('left / right keys are reversed when the menubar has RTL directionality', function() {\n+          var LEFT = 37;\n+          var RIGHT = 39;\n+\n+          test('left key moves to the next item', function(done) {\n+            var rtlContainer = fixture('rtl');\n+            var menubar = rtlContainer.querySelector('test-menubar');\n+            menubar.selected = 0;\n+            menubar.items[1].click();\n+\n+            assert.equal(Polymer.dom(document).activeElement, menubar.items[1]);\n+\n+            MockInteractions.pressAndReleaseKeyOn(menubar, LEFT);\n+\n+            assert.equal(Polymer.dom(document).activeElement, menubar.items[2],\n+                '`document.activeElement` should be the next item.');\n+            assert.equal(menubar.selected, 1,\n+                '`menubar.selected` should not change.');\n+\n+            done();\n+          });\n+\n+          test('right key moves to the previous item', function(done) {\n+            var rtlContainer = fixture('rtl');\n+            var menubar = rtlContainer.querySelector('test-menubar');\n+            menubar.selected = 0;\n+            menubar.items[1].click();\n+\n+            assert.equal(Polymer.dom(document).activeElement, menubar.items[1]);\n+\n+            MockInteractions.pressAndReleaseKeyOn(menubar, RIGHT);\n+\n+            assert.equal(Polymer.dom(document).activeElement, menubar.items[0],\n+                '`document.activeElement` should be the previous item');\n+            assert.equal(menubar.selected, 1,\n+                '`menubar.selected` should not change.');\n+\n+            done();","path":"test/iron-menubar-behavior.html","position":103,"original_position":103,"commit_id":"f67e49dc6fa80a5b285147d8920072767208e364","original_commit_id":"f67e49dc6fa80a5b285147d8920072767208e364","user":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"body":"and here","created_at":"2016-02-02T02:09:57Z","updated_at":"2016-02-02T02:09:57Z","html_url":"https://github.com/PolymerElements/iron-menu-behavior/pull/41#discussion_r51513418","pull_request_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/comments/51513418"},"html":{"href":"https://github.com/PolymerElements/iron-menu-behavior/pull/41#discussion_r51513418"},"pull_request":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41","id":53202735,"html_url":"https://github.com/PolymerElements/iron-menu-behavior/pull/41","diff_url":"https://github.com/PolymerElements/iron-menu-behavior/pull/41.diff","patch_url":"https://github.com/PolymerElements/iron-menu-behavior/pull/41.patch","issue_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/41","number":41,"state":"open","locked":false,"title":"Inverts arrow key focus movement when in an RTL context.","user":{"login":"bicknellr","id":406614,"avatar_url":"https://avatars.githubusercontent.com/u/406614?v=3","gravatar_id":"","url":"https://api.github.com/users/bicknellr","html_url":"https://github.com/bicknellr","followers_url":"https://api.github.com/users/bicknellr/followers","following_url":"https://api.github.com/users/bicknellr/following{/other_user}","gists_url":"https://api.github.com/users/bicknellr/gists{/gist_id}","starred_url":"https://api.github.com/users/bicknellr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bicknellr/subscriptions","organizations_url":"https://api.github.com/users/bicknellr/orgs","repos_url":"https://api.github.com/users/bicknellr/repos","events_url":"https://api.github.com/users/bicknellr/events{/privacy}","received_events_url":"https://api.github.com/users/bicknellr/received_events","type":"User","site_admin":false},"body":"Needed by PolymerElements/paper-tabs#84.","created_at":"2015-12-10T01:08:29Z","updated_at":"2016-02-02T02:09:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1607452238405979a7b896cebff6bd4b43f52ba","assignee":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41/commits","review_comments_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41/comments","review_comment_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/41/comments","statuses_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/statuses/f67e49dc6fa80a5b285147d8920072767208e364","head":{"label":"PolymerElements:bicknellr/paper-tabs_issue-85","ref":"bicknellr/paper-tabs_issue-85","sha":"f67e49dc6fa80a5b285147d8920072767208e364","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":34546968,"name":"iron-menu-behavior","full_name":"PolymerElements/iron-menu-behavior","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/iron-menu-behavior","description":"Accessible menu behavior","fork":false,"url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior","forks_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/forks","keys_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/teams","hooks_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/events","assignees_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/tags","blobs_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/subscription","commits_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/merges","archive_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/downloads","issues_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/releases{/id}","deployments_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/deployments","created_at":"2015-04-24T23:31:47Z","updated_at":"2016-01-12T23:01:00Z","pushed_at":"2016-02-02T01:19:15Z","git_url":"git://github.com/PolymerElements/iron-menu-behavior.git","ssh_url":"git@github.com:PolymerElements/iron-menu-behavior.git","clone_url":"https://github.com/PolymerElements/iron-menu-behavior.git","svn_url":"https://github.com/PolymerElements/iron-menu-behavior","homepage":null,"size":68,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"PolymerElements:master","ref":"master","sha":"cce9814781551bbab4df41470965fd025231eeb6","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":34546968,"name":"iron-menu-behavior","full_name":"PolymerElements/iron-menu-behavior","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/iron-menu-behavior","description":"Accessible menu behavior","fork":false,"url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior","forks_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/forks","keys_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/teams","hooks_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/events","assignees_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/tags","blobs_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/subscription","commits_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/merges","archive_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/downloads","issues_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/releases{/id}","deployments_url":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/deployments","created_at":"2015-04-24T23:31:47Z","updated_at":"2016-01-12T23:01:00Z","pushed_at":"2016-02-02T01:19:15Z","git_url":"git://github.com/PolymerElements/iron-menu-behavior.git","ssh_url":"git@github.com:PolymerElements/iron-menu-behavior.git","clone_url":"https://github.com/PolymerElements/iron-menu-behavior.git","svn_url":"https://github.com/PolymerElements/iron-menu-behavior","homepage":null,"size":68,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41"},"html":{"href":"https://github.com/PolymerElements/iron-menu-behavior/pull/41"},"issue":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/41"},"comments":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/PolymerElements/iron-menu-behavior/statuses/f67e49dc6fa80a5b285147d8920072767208e364"}}}}