{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/web-component-tester/issues/219","repository_url":"https://api.github.com/repos/Polymer/web-component-tester","labels_url":"https://api.github.com/repos/Polymer/web-component-tester/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/web-component-tester/issues/219/comments","events_url":"https://api.github.com/repos/Polymer/web-component-tester/issues/219/events","html_url":"https://github.com/Polymer/web-component-tester/issues/219","id":109107651,"number":219,"title":"Unable to log to console for debugging when running tests","user":{"login":"kristianmandrup","id":125005,"avatar_url":"https://avatars.githubusercontent.com/u/125005?v=3","gravatar_id":"","url":"https://api.github.com/users/kristianmandrup","html_url":"https://github.com/kristianmandrup","followers_url":"https://api.github.com/users/kristianmandrup/followers","following_url":"https://api.github.com/users/kristianmandrup/following{/other_user}","gists_url":"https://api.github.com/users/kristianmandrup/gists{/gist_id}","starred_url":"https://api.github.com/users/kristianmandrup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristianmandrup/subscriptions","organizations_url":"https://api.github.com/users/kristianmandrup/orgs","repos_url":"https://api.github.com/users/kristianmandrup/repos","events_url":"https://api.github.com/users/kristianmandrup/events{/privacy}","received_events_url":"https://api.github.com/users/kristianmandrup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-30T14:47:55Z","updated_at":"2016-03-02T19:28:02Z","closed_at":"2016-03-02T19:28:02Z","body":"I'm playing with registration trying to add a callback function on registration:\r\n\r\n```html\r\n<html>\r\n<head>\r\n\r\n  <meta charset=\"utf-8\">\r\n\r\n  <script src=\"../../../webcomponentsjs/webcomponents-lite.js\"></script>\r\n  <script src=\"../../../web-component-tester/browser.js\"></script>\r\n\r\n  <link rel=\"import\" href=\"../../src/polymer-lib.html\">\r\n  <link rel=\"import\" href=\"../../src/lib/lang.html\">\r\n  <link rel=\"import\" href=\"../../polymer.html\">\r\n  <script type=\"text/javascript\">\r\n  HTMLImports.whenReady(function() {\r\n    Polymer({is: 'x-dist'});\r\n  });\r\n  </script>\r\n</head>\r\n<body>\r\n<script>\r\n\r\nsetup(function() {\r\n  console.log(Polymer);\r\n  // Ensure a clean environment for each test.\r\n  if (Polymer.telemetry) {\r\n    console.log('clear registrations');\r\n    Polymer.telemetry.registrations = [];\r\n  }\r\n});\r\n\r\nsuite('telemetry', function() {\r\n\r\n  test('adds element to registrations', function() {\r\n    assert.lengthOf(Polymer.telemetry.registrations, 0);\r\n    Polymer({\r\n      is: 'test-elem'\r\n    });\r\n    assert.lengthOf(Polymer.telemetry.registrations, 1);\r\n  });\r\n});\r\n```\r\n\r\nHowever, in my test output I never see any of these log messages. What can I do to debug!?\r\n\r\nI get:\r\n\r\n `expected [] to have a length of 1 but got 0` for `assert.lengthOf(Polymer.telemetry.registrations, 1);` \r\n\r\n\r\nAccording to the code in `polymer-bootstrap.html` the `prototype` should (normally!?) be added to `Polymer.telemetry.registrations`. WTF!?\r\n\r\nThanks for any assistance."},"comment":{"url":"https://api.github.com/repos/Polymer/web-component-tester/issues/comments/191386647","html_url":"https://github.com/Polymer/web-component-tester/issues/219#issuecomment-191386647","issue_url":"https://api.github.com/repos/Polymer/web-component-tester/issues/219","id":191386647,"user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T19:28:02Z","updated_at":"2016-03-02T19:28:02Z","body":"Other than -p and using the browser console, I'll track this in #15 "}}