Skip to content

Commit a16ee64

Browse files
committed
Yeeeaaa
1 parent 8556201 commit a16ee64

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test-app/tests/heading/rendering-test.gts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,35 @@ module('Rendering | Heading', function (hooks) {
9595
assert.dom('#a').hasTagName('h1');
9696
assert.dom('#b').hasTagName('h2');
9797
});
98+
99+
test('h1 wrapped in <header><div><a>, h2 wrapped in <a>', async function (assert) {
100+
await render(
101+
<template>
102+
<header>
103+
<div>
104+
<a href="#">
105+
<Heading id="a">one</Heading>
106+
</a>
107+
</div>
108+
</header>
109+
<section>
110+
<a href="#">
111+
<Heading id="b">two</Heading>
112+
</a>
113+
114+
<section>
115+
<a href="#">
116+
<Heading id="c">three</Heading>
117+
</a>
118+
</section>
119+
</section>
120+
</template>
121+
);
122+
123+
assert.dom('#a').hasTagName('h1');
124+
assert.dom('#b').hasTagName('h2');
125+
assert.dom('#c').hasTagName('h3');
126+
});
98127
});
99128

100129
module('in shadow', function () {

0 commit comments

Comments
 (0)