{"action":"created","comment":{"url":"https://api.github.com/repos/emberjs/ember.js/pulls/comments/60772713","id":60772713,"diff_hunk":"@@ -168,6 +170,83 @@ QUnit.test('The {{link-to}} helper moves into the named route', function() {\n   equal(jQuery('#home-link:not(.active)', '#qunit-fixture').length, 1, 'The other link was rendered without active class');\n });\n \n+if (isEnabled('ember-improved-instrumentation')) {\n+  QUnit.test('The {{link-to}} helper fires an interaction event', function(assert) {\n+    assert.expect(2);\n+    Router.map(function(match) {\n+      this.route('about');\n+    });\n+\n+    bootApplication();\n+\n+    run(function() {\n+      router.handleURL('/');\n+    });\n+\n+    subscribe('interaction.link-to', {\n+      before() {\n+        assert.ok(true, 'instrumentation subscriber was called');\n+      },\n+      after() {\n+        assert.ok(true, 'instrumentation subscriber was called');\n+      }\n+    });\n+\n+    run(function() {\n+      jQuery('#about-link', '#qunit-fixture').click();\n+    });\n+  });\n+\n+  QUnit.test('The {{link-to}} helper interaction event includes the route name', function(assert) {\n+    assert.expect(2);\n+    Router.map(function(match) {\n+      this.route('about');\n+    });\n+\n+    bootApplication();\n+\n+    run(function() {\n+      router.handleURL('/');\n+    });\n+\n+    subscribe('interaction.link-to', {\n+      before(name, timestamp, { routeName }) {\n+        assert.equal(routeName, 'about', 'instrumentation subscriber was passed route name');\n+      },\n+      after(name, timestamp, { routeName }) {\n+        assert.equal(routeName, 'about', 'instrumentation subscriber was passed route name');\n+      }\n+    });\n+\n+    run(function() {\n+      jQuery('#about-link', '#qunit-fixture').click();\n+    });\n+  });\n+\n+  QUnit.test('The {{link-to}} helper interaction event includes the transition in the after hook', function(assert) {\n+    assert.expect(1);\n+    Router.map(function(match) {\n+      this.route('about');\n+    });\n+\n+    bootApplication();\n+\n+    run(function() {\n+      router.handleURL('/');\n+    });\n+\n+    subscribe('interaction.link-to', {\n+      after(name, timestamp, { transition }) {\n+        assert.equal(transition.targetName, 'about', 'instrumentation subscriber was passed route name');\n+      }\n+    });\n+\n+    run(function() {","path":"packages/ember/tests/helpers/link_to_test.js","position":91,"original_position":91,"commit_id":"794773a89f15420eaba3d28ce338ec0e99a925da","original_commit_id":"6f9efbda2e597576f00dc7a2135fbcebf194b269","user":{"login":"mixonic","id":8752,"avatar_url":"https://avatars.githubusercontent.com/u/8752?v=3","gravatar_id":"","url":"https://api.github.com/users/mixonic","html_url":"https://github.com/mixonic","followers_url":"https://api.github.com/users/mixonic/followers","following_url":"https://api.github.com/users/mixonic/following{/other_user}","gists_url":"https://api.github.com/users/mixonic/gists{/gist_id}","starred_url":"https://api.github.com/users/mixonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixonic/subscriptions","organizations_url":"https://api.github.com/users/mixonic/orgs","repos_url":"https://api.github.com/users/mixonic/repos","events_url":"https://api.github.com/users/mixonic/events{/privacy}","received_events_url":"https://api.github.com/users/mixonic/received_events","type":"User","site_admin":false},"body":"Also a few places above.","created_at":"2016-04-22T17:18:24Z","updated_at":"2016-04-22T17:18:24Z","html_url":"https://github.com/emberjs/ember.js/pull/13328#discussion_r60772713","pull_request_url":"https://api.github.com/repos/emberjs/ember.js/pulls/13328","_links":{"self":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/comments/60772713"},"html":{"href":"https://github.com/emberjs/ember.js/pull/13328#discussion_r60772713"},"pull_request":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/13328"}}},"pull_request":{"url":"https://api.github.com/repos/emberjs/ember.js/pulls/13328","id":66394461,"html_url":"https://github.com/emberjs/ember.js/pull/13328","diff_url":"https://github.com/emberjs/ember.js/pull/13328.diff","patch_url":"https://github.com/emberjs/ember.js/pull/13328.patch","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/13328","number":13328,"state":"open","locked":false,"title":"[FEATURE ember-improved-instrumentation] Add link-to instrumentation","user":{"login":"asakusuma","id":597574,"avatar_url":"https://avatars.githubusercontent.com/u/597574?v=3","gravatar_id":"","url":"https://api.github.com/users/asakusuma","html_url":"https://github.com/asakusuma","followers_url":"https://api.github.com/users/asakusuma/followers","following_url":"https://api.github.com/users/asakusuma/following{/other_user}","gists_url":"https://api.github.com/users/asakusuma/gists{/gist_id}","starred_url":"https://api.github.com/users/asakusuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asakusuma/subscriptions","organizations_url":"https://api.github.com/users/asakusuma/orgs","repos_url":"https://api.github.com/users/asakusuma/repos","events_url":"https://api.github.com/users/asakusuma/events{/privacy}","received_events_url":"https://api.github.com/users/asakusuma/received_events","type":"User","site_admin":false},"body":"Adding basic instrumenting to link-to.","created_at":"2016-04-13T21:26:43Z","updated_at":"2016-04-22T17:18:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57fe899c9fbf6f07f0b7f3413766e01a3a7267ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/ember.js/pulls/13328/commits","review_comments_url":"https://api.github.com/repos/emberjs/ember.js/pulls/13328/comments","review_comment_url":"https://api.github.com/repos/emberjs/ember.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/13328/comments","statuses_url":"https://api.github.com/repos/emberjs/ember.js/statuses/794773a89f15420eaba3d28ce338ec0e99a925da","head":{"label":"asakusuma:link-to-int","ref":"link-to-int","sha":"794773a89f15420eaba3d28ce338ec0e99a925da","user":{"login":"asakusuma","id":597574,"avatar_url":"https://avatars.githubusercontent.com/u/597574?v=3","gravatar_id":"","url":"https://api.github.com/users/asakusuma","html_url":"https://github.com/asakusuma","followers_url":"https://api.github.com/users/asakusuma/followers","following_url":"https://api.github.com/users/asakusuma/following{/other_user}","gists_url":"https://api.github.com/users/asakusuma/gists{/gist_id}","starred_url":"https://api.github.com/users/asakusuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asakusuma/subscriptions","organizations_url":"https://api.github.com/users/asakusuma/orgs","repos_url":"https://api.github.com/users/asakusuma/repos","events_url":"https://api.github.com/users/asakusuma/events{/privacy}","received_events_url":"https://api.github.com/users/asakusuma/received_events","type":"User","site_admin":false},"repo":{"id":29701859,"name":"ember.js","full_name":"asakusuma/ember.js","owner":{"login":"asakusuma","id":597574,"avatar_url":"https://avatars.githubusercontent.com/u/597574?v=3","gravatar_id":"","url":"https://api.github.com/users/asakusuma","html_url":"https://github.com/asakusuma","followers_url":"https://api.github.com/users/asakusuma/followers","following_url":"https://api.github.com/users/asakusuma/following{/other_user}","gists_url":"https://api.github.com/users/asakusuma/gists{/gist_id}","starred_url":"https://api.github.com/users/asakusuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asakusuma/subscriptions","organizations_url":"https://api.github.com/users/asakusuma/orgs","repos_url":"https://api.github.com/users/asakusuma/repos","events_url":"https://api.github.com/users/asakusuma/events{/privacy}","received_events_url":"https://api.github.com/users/asakusuma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asakusuma/ember.js","description":"Ember.js - A JavaScript framework for creating ambitious web applications","fork":true,"url":"https://api.github.com/repos/asakusuma/ember.js","forks_url":"https://api.github.com/repos/asakusuma/ember.js/forks","keys_url":"https://api.github.com/repos/asakusuma/ember.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asakusuma/ember.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asakusuma/ember.js/teams","hooks_url":"https://api.github.com/repos/asakusuma/ember.js/hooks","issue_events_url":"https://api.github.com/repos/asakusuma/ember.js/issues/events{/number}","events_url":"https://api.github.com/repos/asakusuma/ember.js/events","assignees_url":"https://api.github.com/repos/asakusuma/ember.js/assignees{/user}","branches_url":"https://api.github.com/repos/asakusuma/ember.js/branches{/branch}","tags_url":"https://api.github.com/repos/asakusuma/ember.js/tags","blobs_url":"https://api.github.com/repos/asakusuma/ember.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asakusuma/ember.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asakusuma/ember.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/asakusuma/ember.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asakusuma/ember.js/statuses/{sha}","languages_url":"https://api.github.com/repos/asakusuma/ember.js/languages","stargazers_url":"https://api.github.com/repos/asakusuma/ember.js/stargazers","contributors_url":"https://api.github.com/repos/asakusuma/ember.js/contributors","subscribers_url":"https://api.github.com/repos/asakusuma/ember.js/subscribers","subscription_url":"https://api.github.com/repos/asakusuma/ember.js/subscription","commits_url":"https://api.github.com/repos/asakusuma/ember.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/asakusuma/ember.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/asakusuma/ember.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/asakusuma/ember.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/asakusuma/ember.js/contents/{+path}","compare_url":"https://api.github.com/repos/asakusuma/ember.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asakusuma/ember.js/merges","archive_url":"https://api.github.com/repos/asakusuma/ember.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asakusuma/ember.js/downloads","issues_url":"https://api.github.com/repos/asakusuma/ember.js/issues{/number}","pulls_url":"https://api.github.com/repos/asakusuma/ember.js/pulls{/number}","milestones_url":"https://api.github.com/repos/asakusuma/ember.js/milestones{/number}","notifications_url":"https://api.github.com/repos/asakusuma/ember.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asakusuma/ember.js/labels{/name}","releases_url":"https://api.github.com/repos/asakusuma/ember.js/releases{/id}","deployments_url":"https://api.github.com/repos/asakusuma/ember.js/deployments","created_at":"2015-01-22T21:44:13Z","updated_at":"2016-02-18T21:33:41Z","pushed_at":"2016-04-22T17:02:34Z","git_url":"git://github.com/asakusuma/ember.js.git","ssh_url":"git@github.com:asakusuma/ember.js.git","clone_url":"https://github.com/asakusuma/ember.js.git","svn_url":"https://github.com/asakusuma/ember.js","homepage":"http://www.emberjs.com","size":31072,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"emberjs:master","ref":"master","sha":"7254607584387b5627cbce7ce9084cf1ba3b564d","user":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"repo":{"id":1801829,"name":"ember.js","full_name":"emberjs/ember.js","owner":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emberjs/ember.js","description":"Ember.js - A JavaScript framework for creating ambitious web applications","fork":false,"url":"https://api.github.com/repos/emberjs/ember.js","forks_url":"https://api.github.com/repos/emberjs/ember.js/forks","keys_url":"https://api.github.com/repos/emberjs/ember.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/ember.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/ember.js/teams","hooks_url":"https://api.github.com/repos/emberjs/ember.js/hooks","issue_events_url":"https://api.github.com/repos/emberjs/ember.js/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/ember.js/events","assignees_url":"https://api.github.com/repos/emberjs/ember.js/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/ember.js/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/ember.js/tags","blobs_url":"https://api.github.com/repos/emberjs/ember.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/ember.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/ember.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/ember.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/ember.js/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/ember.js/languages","stargazers_url":"https://api.github.com/repos/emberjs/ember.js/stargazers","contributors_url":"https://api.github.com/repos/emberjs/ember.js/contributors","subscribers_url":"https://api.github.com/repos/emberjs/ember.js/subscribers","subscription_url":"https://api.github.com/repos/emberjs/ember.js/subscription","commits_url":"https://api.github.com/repos/emberjs/ember.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/ember.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/ember.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/ember.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/emberjs/ember.js/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/ember.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/ember.js/merges","archive_url":"https://api.github.com/repos/emberjs/ember.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/ember.js/downloads","issues_url":"https://api.github.com/repos/emberjs/ember.js/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/ember.js/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/ember.js/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/ember.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/ember.js/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/ember.js/releases{/id}","deployments_url":"https://api.github.com/repos/emberjs/ember.js/deployments","created_at":"2011-05-25T23:39:40Z","updated_at":"2016-04-22T16:46:59Z","pushed_at":"2016-04-22T17:02:34Z","git_url":"git://github.com/emberjs/ember.js.git","ssh_url":"git@github.com:emberjs/ember.js.git","clone_url":"https://github.com/emberjs/ember.js.git","svn_url":"https://github.com/emberjs/ember.js","homepage":"http://www.emberjs.com","size":67257,"stargazers_count":16106,"watchers_count":16106,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3461,"mirror_url":null,"open_issues_count":286,"forks":3461,"open_issues":286,"watchers":16106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/13328"},"html":{"href":"https://github.com/emberjs/ember.js/pull/13328"},"issue":{"href":"https://api.github.com/repos/emberjs/ember.js/issues/13328"},"comments":{"href":"https://api.github.com/repos/emberjs/ember.js/issues/13328/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/13328/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/13328/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/ember.js/statuses/794773a89f15420eaba3d28ce338ec0e99a925da"}}}}