{"action":"created","comment":{"url":"https://api.github.com/repos/cargomedia/CM/pulls/comments/32110695","id":32110695,"diff_hunk":"@@ -19,4 +19,14 @@ public function testProcessWithoutLinks() {\n \n         $this->assertSame($expected, $actual);\n     }\n+\n+    public function testProcessWithImgLazy() {\n+        $text = \"#Headline#\\n * element1\\n * element1\\n\\nparagraph\\n\\nfoo_bar_foo\\nfoo _bar_ foo\\nLink: [google.com](http://www.google.com)\\ntest2\\n![Img text](/path/to/img.jpg){\\$200x100}\";\n+        $filter = new CM_Usertext_Filter_Markdown(null);\n+        $actual = $filter->transform($text, new CM_Frontend_Render());\n+        $this->assertStringStartsWith(\"<h1>Headline</h1>\\n<ul>\\n<li>element1</li>\\n<li>element1</li>\\n</ul>\\n<p>paragraph</p>\\n<p>foo_bar_foo</p>\\n<p>foo <em>bar</em> foo</p>\\n<p>Link: <a href=\\\"http://www.google.com\\\">google.com</a></p>\\n<p>test2</p>\", $actual);\n+\n+        $expected = '/<div class=\"contentPlaceholder\"><img class=\"contentPlaceholder-size\" src=\"[^\"]+\"><img data-src=\"\\/path\\/to\\/img\\.jpg\" alt=\"Img text\" class=\"lazy\"\\/><\\/div>/';\n+        $this->assertRegExp($expected, $actual);\n+    }","path":"tests/library/CM/Usertext/Filter/MarkdownTest.php","position":24,"original_position":24,"commit_id":"74dfd5f09be6391e0cd5244772e6ce36059c482c","original_commit_id":"74dfd5f09be6391e0cd5244772e6ce36059c482c","user":{"login":"tomaszdurka","id":113303,"avatar_url":"https://avatars.githubusercontent.com/u/113303?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaszdurka","html_url":"https://github.com/tomaszdurka","followers_url":"https://api.github.com/users/tomaszdurka/followers","following_url":"https://api.github.com/users/tomaszdurka/following{/other_user}","gists_url":"https://api.github.com/users/tomaszdurka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszdurka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszdurka/subscriptions","organizations_url":"https://api.github.com/users/tomaszdurka/orgs","repos_url":"https://api.github.com/users/tomaszdurka/repos","events_url":"https://api.github.com/users/tomaszdurka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszdurka/received_events","type":"User","site_admin":false},"body":"Is it easier to use regexp than our dom-test-helpers? (curious)","created_at":"2015-06-10T12:13:26Z","updated_at":"2015-06-10T12:13:26Z","html_url":"https://github.com/cargomedia/CM/pull/1707#discussion_r32110695","pull_request_url":"https://api.github.com/repos/cargomedia/CM/pulls/1707","_links":{"self":{"href":"https://api.github.com/repos/cargomedia/CM/pulls/comments/32110695"},"html":{"href":"https://github.com/cargomedia/CM/pull/1707#discussion_r32110695"},"pull_request":{"href":"https://api.github.com/repos/cargomedia/CM/pulls/1707"}}},"pull_request":{"url":"https://api.github.com/repos/cargomedia/CM/pulls/1707","id":31937010,"html_url":"https://github.com/cargomedia/CM/pull/1707","diff_url":"https://github.com/cargomedia/CM/pull/1707.diff","patch_url":"https://github.com/cargomedia/CM/pull/1707.patch","issue_url":"https://api.github.com/repos/cargomedia/CM/issues/1707","number":1707,"state":"open","locked":false,"title":"Add jquery.lazyload.","user":{"login":"vogdb","id":372386,"avatar_url":"https://avatars.githubusercontent.com/u/372386?v=3","gravatar_id":"","url":"https://api.github.com/users/vogdb","html_url":"https://github.com/vogdb","followers_url":"https://api.github.com/users/vogdb/followers","following_url":"https://api.github.com/users/vogdb/following{/other_user}","gists_url":"https://api.github.com/users/vogdb/gists{/gist_id}","starred_url":"https://api.github.com/users/vogdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogdb/subscriptions","organizations_url":"https://api.github.com/users/vogdb/orgs","repos_url":"https://api.github.com/users/vogdb/repos","events_url":"https://api.github.com/users/vogdb/events{/privacy}","received_events_url":"https://api.github.com/users/vogdb/received_events","type":"User","site_admin":false},"body":"For image lazy loading.","created_at":"2015-03-25T16:03:34Z","updated_at":"2015-06-10T12:13:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcde0be7dd7c9d39aec5da2f5179bfdde61e77a9","assignee":{"login":"vogdb","id":372386,"avatar_url":"https://avatars.githubusercontent.com/u/372386?v=3","gravatar_id":"","url":"https://api.github.com/users/vogdb","html_url":"https://github.com/vogdb","followers_url":"https://api.github.com/users/vogdb/followers","following_url":"https://api.github.com/users/vogdb/following{/other_user}","gists_url":"https://api.github.com/users/vogdb/gists{/gist_id}","starred_url":"https://api.github.com/users/vogdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogdb/subscriptions","organizations_url":"https://api.github.com/users/vogdb/orgs","repos_url":"https://api.github.com/users/vogdb/repos","events_url":"https://api.github.com/users/vogdb/events{/privacy}","received_events_url":"https://api.github.com/users/vogdb/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cargomedia/CM/pulls/1707/commits","review_comments_url":"https://api.github.com/repos/cargomedia/CM/pulls/1707/comments","review_comment_url":"https://api.github.com/repos/cargomedia/CM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cargomedia/CM/issues/1707/comments","statuses_url":"https://api.github.com/repos/cargomedia/CM/statuses/74dfd5f09be6391e0cd5244772e6ce36059c482c","head":{"label":"vogdb:issue-1707","ref":"issue-1707","sha":"74dfd5f09be6391e0cd5244772e6ce36059c482c","user":{"login":"vogdb","id":372386,"avatar_url":"https://avatars.githubusercontent.com/u/372386?v=3","gravatar_id":"","url":"https://api.github.com/users/vogdb","html_url":"https://github.com/vogdb","followers_url":"https://api.github.com/users/vogdb/followers","following_url":"https://api.github.com/users/vogdb/following{/other_user}","gists_url":"https://api.github.com/users/vogdb/gists{/gist_id}","starred_url":"https://api.github.com/users/vogdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogdb/subscriptions","organizations_url":"https://api.github.com/users/vogdb/orgs","repos_url":"https://api.github.com/users/vogdb/repos","events_url":"https://api.github.com/users/vogdb/events{/privacy}","received_events_url":"https://api.github.com/users/vogdb/received_events","type":"User","site_admin":false},"repo":{"id":23101151,"name":"CM","full_name":"vogdb/CM","owner":{"login":"vogdb","id":372386,"avatar_url":"https://avatars.githubusercontent.com/u/372386?v=3","gravatar_id":"","url":"https://api.github.com/users/vogdb","html_url":"https://github.com/vogdb","followers_url":"https://api.github.com/users/vogdb/followers","following_url":"https://api.github.com/users/vogdb/following{/other_user}","gists_url":"https://api.github.com/users/vogdb/gists{/gist_id}","starred_url":"https://api.github.com/users/vogdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogdb/subscriptions","organizations_url":"https://api.github.com/users/vogdb/orgs","repos_url":"https://api.github.com/users/vogdb/repos","events_url":"https://api.github.com/users/vogdb/events{/privacy}","received_events_url":"https://api.github.com/users/vogdb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vogdb/CM","description":"CM web application framework","fork":true,"url":"https://api.github.com/repos/vogdb/CM","forks_url":"https://api.github.com/repos/vogdb/CM/forks","keys_url":"https://api.github.com/repos/vogdb/CM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vogdb/CM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vogdb/CM/teams","hooks_url":"https://api.github.com/repos/vogdb/CM/hooks","issue_events_url":"https://api.github.com/repos/vogdb/CM/issues/events{/number}","events_url":"https://api.github.com/repos/vogdb/CM/events","assignees_url":"https://api.github.com/repos/vogdb/CM/assignees{/user}","branches_url":"https://api.github.com/repos/vogdb/CM/branches{/branch}","tags_url":"https://api.github.com/repos/vogdb/CM/tags","blobs_url":"https://api.github.com/repos/vogdb/CM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vogdb/CM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vogdb/CM/git/refs{/sha}","trees_url":"https://api.github.com/repos/vogdb/CM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vogdb/CM/statuses/{sha}","languages_url":"https://api.github.com/repos/vogdb/CM/languages","stargazers_url":"https://api.github.com/repos/vogdb/CM/stargazers","contributors_url":"https://api.github.com/repos/vogdb/CM/contributors","subscribers_url":"https://api.github.com/repos/vogdb/CM/subscribers","subscription_url":"https://api.github.com/repos/vogdb/CM/subscription","commits_url":"https://api.github.com/repos/vogdb/CM/commits{/sha}","git_commits_url":"https://api.github.com/repos/vogdb/CM/git/commits{/sha}","comments_url":"https://api.github.com/repos/vogdb/CM/comments{/number}","issue_comment_url":"https://api.github.com/repos/vogdb/CM/issues/comments{/number}","contents_url":"https://api.github.com/repos/vogdb/CM/contents/{+path}","compare_url":"https://api.github.com/repos/vogdb/CM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vogdb/CM/merges","archive_url":"https://api.github.com/repos/vogdb/CM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vogdb/CM/downloads","issues_url":"https://api.github.com/repos/vogdb/CM/issues{/number}","pulls_url":"https://api.github.com/repos/vogdb/CM/pulls{/number}","milestones_url":"https://api.github.com/repos/vogdb/CM/milestones{/number}","notifications_url":"https://api.github.com/repos/vogdb/CM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vogdb/CM/labels{/name}","releases_url":"https://api.github.com/repos/vogdb/CM/releases{/id}","created_at":"2014-08-19T07:34:20Z","updated_at":"2015-05-08T12:54:59Z","pushed_at":"2015-06-10T11:41:59Z","git_url":"git://github.com/vogdb/CM.git","ssh_url":"git@github.com:vogdb/CM.git","clone_url":"https://github.com/vogdb/CM.git","svn_url":"https://github.com/vogdb/CM","homepage":"","size":29405,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"cargomedia:master","ref":"master","sha":"7a1ebb6febfdb9d4bb6529d0bc568d6e218355b2","user":{"login":"cargomedia","id":1699929,"avatar_url":"https://avatars.githubusercontent.com/u/1699929?v=3","gravatar_id":"","url":"https://api.github.com/users/cargomedia","html_url":"https://github.com/cargomedia","followers_url":"https://api.github.com/users/cargomedia/followers","following_url":"https://api.github.com/users/cargomedia/following{/other_user}","gists_url":"https://api.github.com/users/cargomedia/gists{/gist_id}","starred_url":"https://api.github.com/users/cargomedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cargomedia/subscriptions","organizations_url":"https://api.github.com/users/cargomedia/orgs","repos_url":"https://api.github.com/users/cargomedia/repos","events_url":"https://api.github.com/users/cargomedia/events{/privacy}","received_events_url":"https://api.github.com/users/cargomedia/received_events","type":"Organization","site_admin":false},"repo":{"id":7134007,"name":"CM","full_name":"cargomedia/CM","owner":{"login":"cargomedia","id":1699929,"avatar_url":"https://avatars.githubusercontent.com/u/1699929?v=3","gravatar_id":"","url":"https://api.github.com/users/cargomedia","html_url":"https://github.com/cargomedia","followers_url":"https://api.github.com/users/cargomedia/followers","following_url":"https://api.github.com/users/cargomedia/following{/other_user}","gists_url":"https://api.github.com/users/cargomedia/gists{/gist_id}","starred_url":"https://api.github.com/users/cargomedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cargomedia/subscriptions","organizations_url":"https://api.github.com/users/cargomedia/orgs","repos_url":"https://api.github.com/users/cargomedia/repos","events_url":"https://api.github.com/users/cargomedia/events{/privacy}","received_events_url":"https://api.github.com/users/cargomedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cargomedia/CM","description":"CM web application framework","fork":false,"url":"https://api.github.com/repos/cargomedia/CM","forks_url":"https://api.github.com/repos/cargomedia/CM/forks","keys_url":"https://api.github.com/repos/cargomedia/CM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cargomedia/CM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cargomedia/CM/teams","hooks_url":"https://api.github.com/repos/cargomedia/CM/hooks","issue_events_url":"https://api.github.com/repos/cargomedia/CM/issues/events{/number}","events_url":"https://api.github.com/repos/cargomedia/CM/events","assignees_url":"https://api.github.com/repos/cargomedia/CM/assignees{/user}","branches_url":"https://api.github.com/repos/cargomedia/CM/branches{/branch}","tags_url":"https://api.github.com/repos/cargomedia/CM/tags","blobs_url":"https://api.github.com/repos/cargomedia/CM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cargomedia/CM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cargomedia/CM/git/refs{/sha}","trees_url":"https://api.github.com/repos/cargomedia/CM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cargomedia/CM/statuses/{sha}","languages_url":"https://api.github.com/repos/cargomedia/CM/languages","stargazers_url":"https://api.github.com/repos/cargomedia/CM/stargazers","contributors_url":"https://api.github.com/repos/cargomedia/CM/contributors","subscribers_url":"https://api.github.com/repos/cargomedia/CM/subscribers","subscription_url":"https://api.github.com/repos/cargomedia/CM/subscription","commits_url":"https://api.github.com/repos/cargomedia/CM/commits{/sha}","git_commits_url":"https://api.github.com/repos/cargomedia/CM/git/commits{/sha}","comments_url":"https://api.github.com/repos/cargomedia/CM/comments{/number}","issue_comment_url":"https://api.github.com/repos/cargomedia/CM/issues/comments{/number}","contents_url":"https://api.github.com/repos/cargomedia/CM/contents/{+path}","compare_url":"https://api.github.com/repos/cargomedia/CM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cargomedia/CM/merges","archive_url":"https://api.github.com/repos/cargomedia/CM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cargomedia/CM/downloads","issues_url":"https://api.github.com/repos/cargomedia/CM/issues{/number}","pulls_url":"https://api.github.com/repos/cargomedia/CM/pulls{/number}","milestones_url":"https://api.github.com/repos/cargomedia/CM/milestones{/number}","notifications_url":"https://api.github.com/repos/cargomedia/CM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cargomedia/CM/labels{/name}","releases_url":"https://api.github.com/repos/cargomedia/CM/releases{/id}","created_at":"2012-12-12T17:00:30Z","updated_at":"2015-05-07T11:04:07Z","pushed_at":"2015-06-10T11:41:59Z","git_url":"git://github.com/cargomedia/CM.git","ssh_url":"git@github.com:cargomedia/CM.git","clone_url":"https://github.com/cargomedia/CM.git","svn_url":"https://github.com/cargomedia/CM","homepage":"","size":37218,"stargazers_count":7,"watchers_count":7,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":40,"forks":15,"open_issues":40,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cargomedia/CM/pulls/1707"},"html":{"href":"https://github.com/cargomedia/CM/pull/1707"},"issue":{"href":"https://api.github.com/repos/cargomedia/CM/issues/1707"},"comments":{"href":"https://api.github.com/repos/cargomedia/CM/issues/1707/comments"},"review_comments":{"href":"https://api.github.com/repos/cargomedia/CM/pulls/1707/comments"},"review_comment":{"href":"https://api.github.com/repos/cargomedia/CM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cargomedia/CM/pulls/1707/commits"},"statuses":{"href":"https://api.github.com/repos/cargomedia/CM/statuses/74dfd5f09be6391e0cd5244772e6ce36059c482c"}}}}