-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow any layout for amp-social-share, with test. (#3099)
* Allow any layout for amp-social-share, with test. Fixes #3014 * Fix amp-social-share validation and tests. - Any type is allowed, it's just a string. - data-share-endpoint is optional. If given, it must be a URL with one of the whitelisted protocols. Relative URLs are not allowed. * Add j a v a s c r i p t : example. * allow tel: protocol as well * add snapchat
- Loading branch information
1 parent
3545bd4
commit dd47548
Showing
5 changed files
with
74 additions
and
74 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
extensions/amp-social-share/0.1/test/validator-amp-social-share-pass.html
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
extensions/amp-social-share/0.1/test/validator-amp-social-share-pass.out
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
extensions/amp-social-share/0.1/test/validator-amp-social-share.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FAIL | ||
amp-social-share/0.1/test/validator-amp-social-share.html:31:2 The specified layout 'CONTAINER' is not supported by tag 'amp-social-share'. (see https://www.ampproject.org/docs/reference/extended/amp-social-share.html) [AMP_LAYOUT_PROBLEM] | ||
amp-social-share/0.1/test/validator-amp-social-share.html:45:7 The tag 'amp-social-share extension .js script' is missing or incorrect, but required by 'amp-social-share'. (see https://www.ampproject.org/docs/reference/extended/amp-social-share.html) [AMP_TAG_PROBLEM] | ||
amp-social-share/0.1/test/validator-amp-social-share.html:68:2 Invalid URL protocol 'votethisup:' for attribute 'data-share-endpoint' in tag 'amp-social-share'. (see https://www.ampproject.org/docs/reference/extended/amp-social-share.html) [AMP_TAG_PROBLEM] | ||
amp-social-share/0.1/test/validator-amp-social-share.html:76:2 Invalid URL protocol 'j a v a s c r i p t :' for attribute 'data-share-endpoint' in tag 'amp-social-share'. (see https://www.ampproject.org/docs/reference/extended/amp-social-share.html) [AMP_TAG_PROBLEM] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters