{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/37548223","id":37548223,"diff_hunk":"@@ -0,0 +1,493 @@\n+/* global require, module */\n+'use strict';\n+\n+var assert = require('assert');\n+\n+function Music(client, origin) {\n+  this.client = client;\n+  this.origin = origin || ('app://' + Music.DEFAULT_ORIGIN);\n+  this.actions = client.loader.getActions();\n+}\n+\n+module.exports = Music;\n+\n+Music.DEFAULT_ORIGIN = 'music-nga.gaiamobile.org';\n+\n+Music.Selector = Object.freeze({\n+  viewFrame: '#view-stack iframe',\n+  secondaryViewFrame: '#view-stack iframe:nth-child(2)',\n+  homeViewFrame: 'iframe[src*=\"views/home/index.html\"]',\n+  songsViewFrame: 'iframe[src*=\"views/songs/index.html\"]',\n+  artistsViewFrame: 'iframe[src*=\"views/artists/index.html\"]',\n+  playerViewFrame: 'iframe[src*=\"views/player/index.html\"]',\n+  endpoint: '#endpoint',\n+\n+  messageOverlay: '#overlay',\n+  firstTile: '.tile',\n+  tabBar: '#tab-bar',\n+  playlistsTab: '#tab-bar button[data-view-id=\"playlists\"]',\n+  artistsTab: '#tab-bar button[data-view-id=\"artists\"]',\n+  albumsTab: '#tab-bar button[data-view-id=\"albums\"]',\n+  songsTab: '#tab-bar button[data-view-id=\"songs\"]',\n+  playerCover: 'music-artwork#artwork',","path":"dev_apps/music-nga/test/marionette/lib/music.js","position":32,"original_position":32,"commit_id":"92524efc7641e998650f1fe4c0abe63af249ca07","original_commit_id":"92524efc7641e998650f1fe4c0abe63af249ca07","user":{"login":"justindarc","id":207595,"avatar_url":"https://avatars.githubusercontent.com/u/207595?v=3","gravatar_id":"","url":"https://api.github.com/users/justindarc","html_url":"https://github.com/justindarc","followers_url":"https://api.github.com/users/justindarc/followers","following_url":"https://api.github.com/users/justindarc/following{/other_user}","gists_url":"https://api.github.com/users/justindarc/gists{/gist_id}","starred_url":"https://api.github.com/users/justindarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justindarc/subscriptions","organizations_url":"https://api.github.com/users/justindarc/orgs","repos_url":"https://api.github.com/users/justindarc/repos","events_url":"https://api.github.com/users/justindarc/events{/privacy}","received_events_url":"https://api.github.com/users/justindarc/received_events","type":"User","site_admin":false},"body":"I think this is maybe what you meant about having issues with shadow DOM. I don't think this selector will work if Marionette doesn't support shadow DOM.","created_at":"2015-08-20T16:10:28Z","updated_at":"2015-08-20T16:10:28Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/31422#discussion_r37548223","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/37548223"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/31422#discussion_r37548223"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422","id":42821005,"html_url":"https://github.com/mozilla-b2g/gaia/pull/31422","diff_url":"https://github.com/mozilla-b2g/gaia/pull/31422.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/31422.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/31422","number":31422,"state":"open","locked":false,"title":"Bug 1194228 - Marionette test for Music NGA","user":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-19T14:29:46Z","updated_at":"2015-08-20T16:10:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c8f2ef7fbb6cbd59f5a91350c520cff0d86be90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/31422/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/92524efc7641e998650f1fe4c0abe63af249ca07","head":{"label":"hfiguiere:marionette-test","ref":"marionette-test","sha":"92524efc7641e998650f1fe4c0abe63af249ca07","user":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"repo":{"id":3725377,"name":"gaia","full_name":"hfiguiere/gaia","owner":{"login":"hfiguiere","id":114441,"avatar_url":"https://avatars.githubusercontent.com/u/114441?v=3","gravatar_id":"","url":"https://api.github.com/users/hfiguiere","html_url":"https://github.com/hfiguiere","followers_url":"https://api.github.com/users/hfiguiere/followers","following_url":"https://api.github.com/users/hfiguiere/following{/other_user}","gists_url":"https://api.github.com/users/hfiguiere/gists{/gist_id}","starred_url":"https://api.github.com/users/hfiguiere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfiguiere/subscriptions","organizations_url":"https://api.github.com/users/hfiguiere/orgs","repos_url":"https://api.github.com/users/hfiguiere/repos","events_url":"https://api.github.com/users/hfiguiere/events{/privacy}","received_events_url":"https://api.github.com/users/hfiguiere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hfiguiere/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/hfiguiere/gaia","forks_url":"https://api.github.com/repos/hfiguiere/gaia/forks","keys_url":"https://api.github.com/repos/hfiguiere/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hfiguiere/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hfiguiere/gaia/teams","hooks_url":"https://api.github.com/repos/hfiguiere/gaia/hooks","issue_events_url":"https://api.github.com/repos/hfiguiere/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/hfiguiere/gaia/events","assignees_url":"https://api.github.com/repos/hfiguiere/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/hfiguiere/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/hfiguiere/gaia/tags","blobs_url":"https://api.github.com/repos/hfiguiere/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hfiguiere/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hfiguiere/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/hfiguiere/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hfiguiere/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/hfiguiere/gaia/languages","stargazers_url":"https://api.github.com/repos/hfiguiere/gaia/stargazers","contributors_url":"https://api.github.com/repos/hfiguiere/gaia/contributors","subscribers_url":"https://api.github.com/repos/hfiguiere/gaia/subscribers","subscription_url":"https://api.github.com/repos/hfiguiere/gaia/subscription","commits_url":"https://api.github.com/repos/hfiguiere/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/hfiguiere/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/hfiguiere/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/hfiguiere/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/hfiguiere/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/hfiguiere/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hfiguiere/gaia/merges","archive_url":"https://api.github.com/repos/hfiguiere/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hfiguiere/gaia/downloads","issues_url":"https://api.github.com/repos/hfiguiere/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/hfiguiere/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/hfiguiere/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/hfiguiere/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hfiguiere/gaia/labels{/name}","releases_url":"https://api.github.com/repos/hfiguiere/gaia/releases{/id}","created_at":"2012-03-15T05:01:26Z","updated_at":"2014-07-14T22:52:32Z","pushed_at":"2015-08-20T03:31:54Z","git_url":"git://github.com/hfiguiere/gaia.git","ssh_url":"git@github.com:hfiguiere/gaia.git","clone_url":"https://github.com/hfiguiere/gaia.git","svn_url":"https://github.com/hfiguiere/gaia","homepage":"https://wiki.mozilla.org/B2G","size":910889,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"89e0096a3de0378e3eda77e6a2a0bb5ca03eb8bb","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-08-19T15:00:38Z","pushed_at":"2015-08-20T16:04:59Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1583785,"stargazers_count":1971,"watchers_count":1971,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2399,"mirror_url":null,"open_issues_count":1141,"forks":2399,"open_issues":1141,"watchers":1971,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/31422"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/31422"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/31422/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/31422/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/92524efc7641e998650f1fe4c0abe63af249ca07"}}}}