From 205af007863263f0ae4461b7725ee5ba7c24458e Mon Sep 17 00:00:00 2001 From: Renzo Date: Thu, 9 Feb 2017 18:49:44 -0300 Subject: [PATCH 1/2] Add amp accordeon to component mapping --- src/Validate/Context.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Validate/Context.php b/src/Validate/Context.php index 3c254246..a4f865a3 100644 --- a/src/Validate/Context.php +++ b/src/Validate/Context.php @@ -97,6 +97,7 @@ class Context 'amp-vimeo' => 'https://cdn.ampproject.org/v0/amp-vimeo-0.1.js', 'amp-youtube' => 'https://cdn.ampproject.org/v0/amp-youtube-0.1.js', 'amp-sidebar' => 'https://cdn.ampproject.org/v0/amp-sidebar-0.1.js', + 'amp-accordion' => 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js', 'template' => 'https://cdn.ampproject.org/v0/amp-mustache-0.1.js' ]; From f38fb990f70f01fcfcd91a281763c287a33d2990 Mon Sep 17 00:00:00 2001 From: Renzo Date: Tue, 14 Mar 2017 12:58:48 -0300 Subject: [PATCH 2/2] changes for tests --- tests/test-data/full-html/validator-amp-accordion.html.out | 3 ++- tests/test-data/full-html/validator-amp-sidebar.html.out | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test-data/full-html/validator-amp-accordion.html.out b/tests/test-data/full-html/validator-amp-accordion.html.out index 5801a4fc..5c4516d3 100644 --- a/tests/test-data/full-html/validator-amp-accordion.html.out +++ b/tests/test-data/full-html/validator-amp-accordion.html.out @@ -166,4 +166,5 @@ FAIL COMPONENT NAMES WITH JS PATH ------------------------------ -No custom amp script includes required +'amp-accordion', include path 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js' + diff --git a/tests/test-data/full-html/validator-amp-sidebar.html.out b/tests/test-data/full-html/validator-amp-sidebar.html.out index fe1b62d8..541df923 100644 --- a/tests/test-data/full-html/validator-amp-sidebar.html.out +++ b/tests/test-data/full-html/validator-amp-sidebar.html.out @@ -135,5 +135,7 @@ FAIL COMPONENT NAMES WITH JS PATH ------------------------------ +'amp-sidebar', include path 'https://cdn.ampproject.org/v0/amp-sidebar-0.1.js' +'amp-accordion', include path 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js' 'amp-fit-text', include path 'https://cdn.ampproject.org/v0/amp-fit-text-0.1.js'