Skip to content

Commit 68f283b

Browse files
committed
Add test for amp-nested-menu with amp-list
1 parent 771d59f commit 68f283b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tests/php/test-tag-and-attribute-sanitizer.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,6 +2554,39 @@ class="gallery"
25542554
[ 'amp-sidebar' ],
25552555
],
25562556

2557+
'amp-nested-menu-with-amp-list' => [
2558+
'
2559+
<button on="tap:sidebar2">Open Sidebar</button>
2560+
<amp-sidebar id="sidebar2" layout="nodisplay" style="width:300px">
2561+
<amp-list
2562+
layout="fill"
2563+
src="/static/inline-examples/data/amp-list-data.json"
2564+
items="."
2565+
single-item>
2566+
<template type="amp-mustache">
2567+
<amp-nested-menu layout="fill">
2568+
<ul>
2569+
{{#items}} <li>
2570+
<h3 amp-nested-submenu-open>{{title}}</h3>
2571+
<div amp-nested-submenu>
2572+
<button amp-nested-submenu-close>close</button>
2573+
<amp-img
2574+
src="{{imageUrl}}"
2575+
layout="responsive"
2576+
width="400"
2577+
height="300"></amp-img>
2578+
</div>
2579+
</li>
2580+
{{/items}} </ul>
2581+
</amp-nested-menu>
2582+
</template>
2583+
</amp-list>
2584+
</amp-sidebar>
2585+
',
2586+
null,
2587+
[ 'amp-sidebar', 'amp-list', 'amp-mustache' ],
2588+
],
2589+
25572590
'amp-redbull-player' => [
25582591
'
25592592
<amp-redbull-player

0 commit comments

Comments
 (0)