{"action":"created","comment":{"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/comments/75019680","id":75019680,"diff_hunk":"@@ -0,0 +1,73 @@\n+/* bender-tags: editor,unit */\n+/* bender-ckeditor-plugins: contextmenu,detabler */\n+\n+(function () {\n+\t'use strict';\n+\tbender.editor = {\n+\t\tconfig: {\n+\t\t\tenterMode: CKEDITOR.ENTER_P\n+\t\t}\n+\t};\n+\tbender.test({\n+\t\tsetUp: function () {\n+\t\t\tthis.command = this.editorBot.editor.getCommand('detable');\n+\t\t},\n+\t\tcontextMenuItemIsPresent: function (editor) {\n+\t\t\t// open and close the context menu, and return true if the detable option was present.\n+\n+\t\t\teditor.contextMenu.open(editor.editable());\n+\n+\t\t\tvar itemExists = false;\n+\t\t\tfor (var i = 0; i < editor.contextMenu.items.length; ++i) {\n+\t\t\t\tif (editor.contextMenu.items[i].command == 'detable') {\n+\t\t\t\t\titemExists = true;\n+\t\t\t\t\tbreak;\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t\teditor.contextMenu.hide();\n+\n+\t\t\treturn itemExists;\n+\t\t},\n+\t\t'context menu item is not present outside of tables': function () {\n+\t\t\tvar editor = this.editorBot.editor,\n+\t\t\t\tstartHtml;\n+\n+\t\t\tstartHtml = '<p>foobar^</p>' +\n+\t\t\t\t'<p>baz</p>' +\n+\t\t\t\t'<table>' +\n+\t\t\t\t\t'<tbody>' +\n+\t\t\t\t\t\t'<tr><td>leave me alone</td></tr>' +\n+\t\t\t\t\t'</tbody>' +\n+\t\t\t\t'</table>';\n+\n+\t\t\tthis.editorBot.setHtmlWithSelection(\n+\t\t\t\tstartHtml","path":"tests/detabler/contextmenu.js","position":45,"original_position":45,"commit_id":"5b60c35e3f06a13894ab01ad4cee591720743933","original_commit_id":"5b60c35e3f06a13894ab01ad4cee591720743933","user":{"login":"kylegibson","id":243791,"avatar_url":"https://avatars.githubusercontent.com/u/243791?v=3","gravatar_id":"","url":"https://api.github.com/users/kylegibson","html_url":"https://github.com/kylegibson","followers_url":"https://api.github.com/users/kylegibson/followers","following_url":"https://api.github.com/users/kylegibson/following{/other_user}","gists_url":"https://api.github.com/users/kylegibson/gists{/gist_id}","starred_url":"https://api.github.com/users/kylegibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylegibson/subscriptions","organizations_url":"https://api.github.com/users/kylegibson/orgs","repos_url":"https://api.github.com/users/kylegibson/repos","events_url":"https://api.github.com/users/kylegibson/events{/privacy}","received_events_url":"https://api.github.com/users/kylegibson/received_events","type":"User","site_admin":false},"body":"I suspect this could fit on one line","created_at":"2016-08-16T21:03:25Z","updated_at":"2016-08-16T21:03:25Z","html_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler/pull/1#discussion_r75019680","pull_request_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/comments/75019680"},"html":{"href":"https://github.com/PolicyStat/ckeditor-plugin-detabler/pull/1#discussion_r75019680"},"pull_request":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1","id":81525517,"html_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler/pull/1","diff_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler/pull/1.diff","patch_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler/pull/1.patch","issue_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/1","number":1,"state":"open","locked":false,"title":"Initial post-boilerplate release ","user":{"login":"caffodian","id":2367533,"avatar_url":"https://avatars.githubusercontent.com/u/2367533?v=3","gravatar_id":"","url":"https://api.github.com/users/caffodian","html_url":"https://github.com/caffodian","followers_url":"https://api.github.com/users/caffodian/followers","following_url":"https://api.github.com/users/caffodian/following{/other_user}","gists_url":"https://api.github.com/users/caffodian/gists{/gist_id}","starred_url":"https://api.github.com/users/caffodian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caffodian/subscriptions","organizations_url":"https://api.github.com/users/caffodian/orgs","repos_url":"https://api.github.com/users/caffodian/repos","events_url":"https://api.github.com/users/caffodian/events{/privacy}","received_events_url":"https://api.github.com/users/caffodian/received_events","type":"User","site_admin":false},"body":"initial work on the de-tabler plugin, but after I'd already copied over the project boilerplate from the other project.  ","created_at":"2016-08-16T18:58:48Z","updated_at":"2016-08-16T21:03:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8023e5101cd257fd32053a49899325b60d245e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1/commits","review_comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1/comments","review_comment_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/1/comments","statuses_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/statuses/5b60c35e3f06a13894ab01ad4cee591720743933","head":{"label":"PolicyStat:master","ref":"master","sha":"5b60c35e3f06a13894ab01ad4cee591720743933","user":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"repo":{"id":65753610,"name":"ckeditor-plugin-detabler","full_name":"PolicyStat/ckeditor-plugin-detabler","owner":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler","description":"Plugin to add a \"de-table\" context menu option","fork":false,"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler","forks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/forks","keys_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/teams","hooks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/hooks","issue_events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/events{/number}","events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/events","assignees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/assignees{/user}","branches_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/branches{/branch}","tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/tags","blobs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/statuses/{sha}","languages_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/languages","stargazers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/stargazers","contributors_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/contributors","subscribers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/subscribers","subscription_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/subscription","commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/contents/{+path}","compare_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/merges","archive_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/downloads","issues_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues{/number}","pulls_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls{/number}","milestones_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/milestones{/number}","notifications_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/labels{/name}","releases_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/releases{/id}","deployments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/deployments","created_at":"2016-08-15T18:06:11Z","updated_at":"2016-08-16T20:02:11Z","pushed_at":"2016-08-16T21:01:15Z","git_url":"git://github.com/PolicyStat/ckeditor-plugin-detabler.git","ssh_url":"git@github.com:PolicyStat/ckeditor-plugin-detabler.git","clone_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler.git","svn_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler","homepage":null,"size":343,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"PolicyStat:release","ref":"release","sha":"37fcdb5644165d54ce4d35df0ee942e0a5264c3e","user":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"repo":{"id":65753610,"name":"ckeditor-plugin-detabler","full_name":"PolicyStat/ckeditor-plugin-detabler","owner":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler","description":"Plugin to add a \"de-table\" context menu option","fork":false,"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler","forks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/forks","keys_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/teams","hooks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/hooks","issue_events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/events{/number}","events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/events","assignees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/assignees{/user}","branches_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/branches{/branch}","tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/tags","blobs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/statuses/{sha}","languages_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/languages","stargazers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/stargazers","contributors_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/contributors","subscribers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/subscribers","subscription_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/subscription","commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/contents/{+path}","compare_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/merges","archive_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/downloads","issues_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues{/number}","pulls_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls{/number}","milestones_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/milestones{/number}","notifications_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/labels{/name}","releases_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/releases{/id}","deployments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/deployments","created_at":"2016-08-15T18:06:11Z","updated_at":"2016-08-16T20:02:11Z","pushed_at":"2016-08-16T21:01:15Z","git_url":"git://github.com/PolicyStat/ckeditor-plugin-detabler.git","ssh_url":"git@github.com:PolicyStat/ckeditor-plugin-detabler.git","clone_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler.git","svn_url":"https://github.com/PolicyStat/ckeditor-plugin-detabler","homepage":null,"size":343,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1"},"html":{"href":"https://github.com/PolicyStat/ckeditor-plugin-detabler/pull/1"},"issue":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/1"},"comments":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-detabler/statuses/5b60c35e3f06a13894ab01ad4cee591720743933"}}}}
{"actor":{"display_login":"kylegibson"}}