Skip to content

Commit ea60f9c

Browse files
author
Sigurður Guðbrandsson
authored
Merge pull request #165 from renzit/master
Add amp accordeon to component mapping
2 parents 160aa98 + 1decfbb commit ea60f9c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/Validate/Context.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class Context
9898
'amp-vimeo' => 'https://cdn.ampproject.org/v0/amp-vimeo-0.1.js',
9999
'amp-youtube' => 'https://cdn.ampproject.org/v0/amp-youtube-0.1.js',
100100
'amp-sidebar' => 'https://cdn.ampproject.org/v0/amp-sidebar-0.1.js',
101+
'amp-accordion' => 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js',
101102
'template' => 'https://cdn.ampproject.org/v0/amp-mustache-0.1.js'
102103
];
103104

tests/test-data/full-html/validator-amp-accordion.html.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,5 @@ FAIL
166166

167167
COMPONENT NAMES WITH JS PATH
168168
------------------------------
169-
No custom amp script includes required
169+
'amp-accordion', include path 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js'
170+

tests/test-data/full-html/validator-amp-sidebar.html.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@ FAIL
137137
COMPONENT NAMES WITH JS PATH
138138
------------------------------
139139
'amp-sidebar', include path 'https://cdn.ampproject.org/v0/amp-sidebar-0.1.js'
140+
'amp-accordion', include path 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js'
140141
'amp-fit-text', include path 'https://cdn.ampproject.org/v0/amp-fit-text-0.1.js'
141142

0 commit comments

Comments
 (0)