{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular/pulls/comments/27500155","id":27500155,"diff_hunk":"@@ -0,0 +1,57 @@\n+import {Injector} from 'angular2/di';\n+\n+import {Type, isPresent} from 'angular2/src/facade/lang';\n+import {Promise} from 'angular2/src/facade/async';\n+\n+import {Template} from 'angular2/src/core/annotations/template';\n+\n+import {TemplateResolver} from 'angular2/src/core/compiler/template_resolver';\n+import {Compiler} from 'angular2/src/core/compiler/compiler';\n+import {View} from 'angular2/src/core/compiler/view';\n+\n+import {EventManager} from 'angular2/src/core/events/event_manager';\n+\n+import {instantiateType, getTypeOf} from './lang_utils';\n+\n+export class TestBed {\n+  _injector: Injector;\n+\n+  constructor(injector: Injector) {\n+    this._injector = injector;\n+  }\n+\n+  setTemplate(component: Type, template: Template) {\n+    var tplResolver = this._injector.get(TemplateResolver);\n+    tplResolver.setTemplate(component, template);\n+  }\n+\n+  createView(componentOrContext, {html = null}: {html: string} = {}): Promise<View> {","path":"modules/angular2/src/test_lib/test_bed.js","position":null,"original_position":28,"commit_id":"ef070c9e48ff70b31268cd30251e2bc99dda65af","original_commit_id":"0e509f4fac70e3b47369d70751ff1c6b7c293b9f","user":{"login":"matanlurey","id":168174,"avatar_url":"https://avatars.githubusercontent.com/u/168174?v=3","gravatar_id":"","url":"https://api.github.com/users/matanlurey","html_url":"https://github.com/matanlurey","followers_url":"https://api.github.com/users/matanlurey/followers","following_url":"https://api.github.com/users/matanlurey/following{/other_user}","gists_url":"https://api.github.com/users/matanlurey/gists{/gist_id}","starred_url":"https://api.github.com/users/matanlurey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matanlurey/subscriptions","organizations_url":"https://api.github.com/users/matanlurey/orgs","repos_url":"https://api.github.com/users/matanlurey/repos","events_url":"https://api.github.com/users/matanlurey/events{/privacy}","received_events_url":"https://api.github.com/users/matanlurey/received_events","type":"User","site_admin":false},"body":"Document please.","created_at":"2015-03-31T17:10:46Z","updated_at":"2015-03-31T17:10:46Z","html_url":"https://github.com/angular/angular/pull/1160#discussion_r27500155","pull_request_url":"https://api.github.com/repos/angular/angular/pulls/1160","_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/comments/27500155"},"html":{"href":"https://github.com/angular/angular/pull/1160#discussion_r27500155"},"pull_request":{"href":"https://api.github.com/repos/angular/angular/pulls/1160"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/1160","id":32235947,"html_url":"https://github.com/angular/angular/pull/1160","diff_url":"https://github.com/angular/angular/pull/1160.diff","patch_url":"https://github.com/angular/angular/pull/1160.patch","issue_url":"https://api.github.com/repos/angular/angular/issues/1160","number":1160,"state":"open","locked":false,"title":"[WIP] Angular2 testing: TestBed","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"body":"**WIP, early proto**","created_at":"2015-03-30T15:13:53Z","updated_at":"2015-03-31T17:10:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6734a3210da511223b0b2ce6d9b3e1813fa79b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular/pulls/1160/commits","review_comments_url":"https://api.github.com/repos/angular/angular/pulls/1160/comments","review_comment_url":"https://api.github.com/repos/angular/angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular/issues/1160/comments","statuses_url":"https://api.github.com/repos/angular/angular/statuses/ef070c9e48ff70b31268cd30251e2bc99dda65af","head":{"label":"vicb:0330-test","ref":"0330-test","sha":"ef070c9e48ff70b31268cd30251e2bc99dda65af","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"repo":{"id":24640725,"name":"angular","full_name":"vicb/angular","owner":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vicb/angular","description":"","fork":true,"url":"https://api.github.com/repos/vicb/angular","forks_url":"https://api.github.com/repos/vicb/angular/forks","keys_url":"https://api.github.com/repos/vicb/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vicb/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vicb/angular/teams","hooks_url":"https://api.github.com/repos/vicb/angular/hooks","issue_events_url":"https://api.github.com/repos/vicb/angular/issues/events{/number}","events_url":"https://api.github.com/repos/vicb/angular/events","assignees_url":"https://api.github.com/repos/vicb/angular/assignees{/user}","branches_url":"https://api.github.com/repos/vicb/angular/branches{/branch}","tags_url":"https://api.github.com/repos/vicb/angular/tags","blobs_url":"https://api.github.com/repos/vicb/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vicb/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vicb/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/vicb/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vicb/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/vicb/angular/languages","stargazers_url":"https://api.github.com/repos/vicb/angular/stargazers","contributors_url":"https://api.github.com/repos/vicb/angular/contributors","subscribers_url":"https://api.github.com/repos/vicb/angular/subscribers","subscription_url":"https://api.github.com/repos/vicb/angular/subscription","commits_url":"https://api.github.com/repos/vicb/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/vicb/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/vicb/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/vicb/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/vicb/angular/contents/{+path}","compare_url":"https://api.github.com/repos/vicb/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vicb/angular/merges","archive_url":"https://api.github.com/repos/vicb/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vicb/angular/downloads","issues_url":"https://api.github.com/repos/vicb/angular/issues{/number}","pulls_url":"https://api.github.com/repos/vicb/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/vicb/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/vicb/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vicb/angular/labels{/name}","releases_url":"https://api.github.com/repos/vicb/angular/releases{/id}","created_at":"2014-09-30T14:12:47Z","updated_at":"2015-03-02T08:51:37Z","pushed_at":"2015-03-31T17:04:56Z","git_url":"git://github.com/vicb/angular.git","ssh_url":"git@github.com:vicb/angular.git","clone_url":"https://github.com/vicb/angular.git","svn_url":"https://github.com/vicb/angular","homepage":null,"size":4566,"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":"angular:master","ref":"master","sha":"123ee8e06fa98c8932727d13c048f23a7eb483e3","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":24195339,"name":"angular","full_name":"angular/angular","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular","description":"","fork":false,"url":"https://api.github.com/repos/angular/angular","forks_url":"https://api.github.com/repos/angular/angular/forks","keys_url":"https://api.github.com/repos/angular/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular/teams","hooks_url":"https://api.github.com/repos/angular/angular/hooks","issue_events_url":"https://api.github.com/repos/angular/angular/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular/events","assignees_url":"https://api.github.com/repos/angular/angular/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular/tags","blobs_url":"https://api.github.com/repos/angular/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular/languages","stargazers_url":"https://api.github.com/repos/angular/angular/stargazers","contributors_url":"https://api.github.com/repos/angular/angular/contributors","subscribers_url":"https://api.github.com/repos/angular/angular/subscribers","subscription_url":"https://api.github.com/repos/angular/angular/subscription","commits_url":"https://api.github.com/repos/angular/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular/merges","archive_url":"https://api.github.com/repos/angular/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular/downloads","issues_url":"https://api.github.com/repos/angular/angular/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular/releases{/id}","created_at":"2014-09-18T16:12:01Z","updated_at":"2015-03-31T17:02:42Z","pushed_at":"2015-03-31T17:04:56Z","git_url":"git://github.com/angular/angular.git","ssh_url":"git@github.com:angular/angular.git","clone_url":"https://github.com/angular/angular.git","svn_url":"https://github.com/angular/angular","homepage":null,"size":13730,"stargazers_count":2199,"watchers_count":2199,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":516,"mirror_url":null,"open_issues_count":211,"forks":516,"open_issues":211,"watchers":2199,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/1160"},"html":{"href":"https://github.com/angular/angular/pull/1160"},"issue":{"href":"https://api.github.com/repos/angular/angular/issues/1160"},"comments":{"href":"https://api.github.com/repos/angular/angular/issues/1160/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular/pulls/1160/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular/pulls/1160/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular/statuses/ef070c9e48ff70b31268cd30251e2bc99dda65af"}}}}