Skip to content

Commit cd6e743

Browse files
committed
Mark warnings from test/baselines/sources/namespaces.html as expected
Ref tc39#532
1 parent bcd4b36 commit cd6e743

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/baselines/generated-reference/namespaces.html

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ <h1><span class="secnum">1.1</span> Clause 1.1</h1>
4444
</emu-production>
4545
</emu-grammar>
4646

47+
<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=clause`? -->
48+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
4749
<emu-clause id="c111" aoid="SomeAlg">
4850
<h1><span class="secnum">1.1.1</span> SomeAlg</h1>
4951
</emu-clause>
@@ -63,10 +65,14 @@ <h1><span class="secnum">A</span> Annex</h1>
6365
</emu-rhs>
6466
</emu-production>
6567
</emu-grammar>
68+
<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=annex`? -->
69+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
6670
<emu-annex id="annex11" aoid="SomeAlg">
6771
<h1><span class="secnum">A.1</span> SomeAlg</h1>
6872
</emu-annex>
6973

74+
<!-- FIXME: Shouldn't this be allowed by `namespace=annex2`? -->
75+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
7076
<emu-annex id="annex12" aoid="SomeAlg" namespace="annex2">
7177
<h1><span class="secnum">A.2</span> Annex 1.2</h1>
7278
<p><emu-xref aoid="SomeAlg" id="_ref_3"><a href="#i1">SomeAlg</a></emu-xref> should link to #annex12. <emu-nt id="_ref_12"><a href="#prod-annex-Foo">Foo</a></emu-nt> should link to the production in #annex1.</p>
@@ -78,6 +84,7 @@ <h1><span class="secnum">A.2</span> Annex 1.2</h1>
7884

7985
<emu-annex id="annex2" namespace="annex">
8086
<h1><span class="secnum">B</span> Annex 2</h1>
87+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
8188
<emu-annex id="annex21" aoid="SomeAlg">
8289
<h1><span class="secnum">B.1</span> SomeAlg</h1>
8390
</emu-annex>

test/baselines/sources/namespaces.html

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ <h1>Clause 1.1</h1>
2727
`bar` MainProd `baz`
2828
</emu-grammar>
2929

30+
<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=clause`? -->
31+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
3032
<emu-clause id=c111 aoid=SomeAlg>
3133
<h1>SomeAlg</h1>
3234
</emu-clause>
@@ -42,10 +44,14 @@ <h1>Annex</h1>
4244
Foo ::
4345
`bar` MainProd `baz`
4446
</emu-grammar>
47+
<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=annex`? -->
48+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
4549
<emu-annex id=annex11 aoid=SomeAlg>
4650
<h1>SomeAlg</h1>
4751
</emu-annex>
4852

53+
<!-- FIXME: Shouldn't this be allowed by `namespace=annex2`? -->
54+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
4955
<emu-annex id=annex12 aoid=SomeAlg namespace=annex2>
5056
<h1>Annex 1.2</h1>
5157
<p>SomeAlg should link to #annex12. |Foo| should link to the production in #annex1.</p>
@@ -59,6 +65,7 @@ <h1>Annex 1.2</h1>
5965

6066
<emu-annex id=annex2 namespace=annex>
6167
<h1>Annex 2</h1>
68+
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
6269
<emu-annex id=annex21 aoid=SomeAlg>
6370
<h1>SomeAlg</h1>
6471
</emu-annex>

0 commit comments

Comments
 (0)