{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/7366","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/7366/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/7366/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/7366/events","html_url":"https://github.com/ampproject/amphtml/issues/7366","id":205567566,"number":7366,"title":"Bug: test-placement.js tests failing","user":{"login":"eduardcotmrf","id":23262331,"avatar_url":"https://avatars.githubusercontent.com/u/23262331?v=3","gravatar_id":"","url":"https://api.github.com/users/eduardcotmrf","html_url":"https://github.com/eduardcotmrf","followers_url":"https://api.github.com/users/eduardcotmrf/followers","following_url":"https://api.github.com/users/eduardcotmrf/following{/other_user}","gists_url":"https://api.github.com/users/eduardcotmrf/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardcotmrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardcotmrf/subscriptions","organizations_url":"https://api.github.com/users/eduardcotmrf/orgs","repos_url":"https://api.github.com/users/eduardcotmrf/repos","events_url":"https://api.github.com/users/eduardcotmrf/events{/privacy}","received_events_url":"https://api.github.com/users/eduardcotmrf/received_events","type":"User","site_admin":false},"labels":[{"id":283436627,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Category:%20Ads","name":"Category: Ads","color":"1d76db","default":false},{"id":284525535,"url":"https://api.github.com/repos/ampproject/amphtml/labels/P3:%20When%20Possible","name":"P3: When Possible","color":"d93f0b","default":false},{"id":255304066,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Bug","name":"Type: Bug","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false},"assignees":[{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/4","html_url":"https://github.com/ampproject/amphtml/milestone/4","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/4/labels","id":1537240,"number":4,"title":"Backlog Bugs","description":"This milestone tracks all bugs opened for the projects that are not yet assigned to a sprint milestone. Bugs within this milestone will be fixed based on the priority of the issue. ","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars.githubusercontent.com/u/3888212?v=3","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":185,"closed_issues":233,"state":"open","created_at":"2016-01-22T23:51:53Z","updated_at":"2017-02-08T04:11:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-02-06T12:22:54Z","updated_at":"2017-02-08T10:56:59Z","closed_at":null,"body":"I've just updated the amp-html from master in my local enviroment and some test are failing.\r\n\r\nThis seems related to https://github.com/ampproject/amphtml/pull/7153.\r\n\r\nIf I run everything with: gulp test, everything works fine.\r\nBut if I do:\r\n```\r\ngulp clean\r\ngulp build\r\ngulp test --files=extensions/amp-auto-ads/0.1/test/test-placement.js --nobuild\r\n```\r\n\r\nI get this output:\r\n\r\n```\r\n[13:21:41] Starting 'test'...\r\n[13:21:41] Webserver started at http://localhost:31862\r\n[13:21:41] Started test responses server on localhost:31862\r\n06 02 2017 13:21:42.854:WARN [watcher]: Pattern \"/Users/eduardcot/amp/mrf/amphtml/dist.tools/**/*.js\" does not match any file.\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should place an ad with the correct attributes FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should place an ad with the correct margins FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should place an ad with top margin only FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should place an ad with bottom margin only FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should place an ad with no margins FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should report placement placed when resize allowed FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement placeAd should report resize failed when resize not allowed FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement Ad positioning should place the ad before the anchor FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement Ad positioning should place the ad after the anchor FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement Ad positioning should place the ad as the first child of the anchor FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement Ad positioning should place the ad as the last child of the anchor FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0) placement Ad positioning should place the ad inside the 2nd anchor with class name FAILED\r\n\tTypeError: Cannot read property 'create' of undefined\r\n\t    at CustomAmpElement.CustomElementsV1 (dist/v0/amp-ad-0.1.max.js:6702:54)\r\n\t    at CustomAmpElement.BaseCustomElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14284:104 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:430:25)\r\n\t    at new CustomAmpElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:14245:103 <- /Users/eduardcot/amp/mrf/amphtml/src/custom-element.js:404:24)\r\n\t    at HTMLDocument.document.createElement (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:2805:30 <- node_modules/document-register-element/build/document-register-element.node.js:1368:0)\r\n\t    at HTMLDocument.document.createElement (dist/v0/amp-ad-0.1.max.js:6730:30)\r\n\t    at createElementWithAttributes (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:16163:21 <- /Users/eduardcot/amp/mrf/amphtml/src/dom.js:160:22)\r\n\t    at Placement.createAdElement_ (/var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:712:54 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:203:8)\r\n\t    at /var/folders/1s/wb13vhc53bs6l_fz8x2gvw3r0000gn/T/1e026969d9c5b644913d5e6f758a8bec.browserify:681:38 <- /Users/eduardcot/amp/mrf/amphtml/extensions/amp-auto-ads/0.1/placement.js:171:31\r\nChrome 55.0.2883 (Mac OS X 10.12.0): Executed 25 of 25 (12 FAILED) (0.469 secs / 0.356 secs)\r\n```\r\n\r\nThis happens to me with your master branch clean."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/278296348","html_url":"https://github.com/ampproject/amphtml/issues/7366#issuecomment-278296348","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/7366","id":278296348,"user":{"login":"tlong2","id":21240004,"avatar_url":"https://avatars.githubusercontent.com/u/21240004?v=3","gravatar_id":"","url":"https://api.github.com/users/tlong2","html_url":"https://github.com/tlong2","followers_url":"https://api.github.com/users/tlong2/followers","following_url":"https://api.github.com/users/tlong2/following{/other_user}","gists_url":"https://api.github.com/users/tlong2/gists{/gist_id}","starred_url":"https://api.github.com/users/tlong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlong2/subscriptions","organizations_url":"https://api.github.com/users/tlong2/orgs","repos_url":"https://api.github.com/users/tlong2/repos","events_url":"https://api.github.com/users/tlong2/events{/privacy}","received_events_url":"https://api.github.com/users/tlong2/received_events","type":"User","site_admin":false},"created_at":"2017-02-08T10:56:59Z","updated_at":"2017-02-08T10:56:59Z","body":"The problem seems to be that the tests are inserting real <amp-ad> elements. When running gulp test, this is fine but when running an individual file's tests the amp-ad element isn't registered or something so there is an error?\r\n\r\nCould someone explain what the different in test environment is between gult test and gulp test files=...\r\nOr is this simply that there is leakage between tests and the extensions/amp-ad tests don't tidy up after themselves and leave the amp-ad element registered?"}}
{"actor":{"display_login":"tlong2"}}