Skip to content

Commit 424b6c5

Browse files
committed
test: enable experimental exact parsing for select option tests
Add `ExperimentalExactParsingThingy: true` to test cases from #1070
1 parent 8b9fd67 commit 424b6c5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

internal/printer/printer_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,22 +2576,37 @@ const meta = { title: 'My App' };
25762576
{
25772577
name: "select with option containing element",
25782578
source: `<select><option><span>Lemon</span></option></select>`,
2579+
transformOptions: transform.TransformOptions{
2580+
ExperimentalExactParsingThingy: true,
2581+
},
25792582
},
25802583
{
25812584
name: "select with 2 options containing element",
25822585
source: `<select><option><span>Lemon</span></option><option><span>Lime</span></option></select>`,
2586+
transformOptions: transform.TransformOptions{
2587+
ExperimentalExactParsingThingy: true,
2588+
},
25832589
},
25842590
{
25852591
name: "select with option containing element with div sibling",
25862592
source: `<select><option><span>Lemon</span></option></select><div>Orange</div>`,
2593+
transformOptions: transform.TransformOptions{
2594+
ExperimentalExactParsingThingy: true,
2595+
},
25872596
},
25882597
{
25892598
name: "select with 2 options containing element with div sibling",
25902599
source: `<select><option><span>Lemon</span></option><option><span>Lime</span></option></select><div>Orange</div>`,
2600+
transformOptions: transform.TransformOptions{
2601+
ExperimentalExactParsingThingy: true,
2602+
},
25912603
},
25922604
{
25932605
name: "select with option containing element and button containing selected content",
25942606
source: `<select><button><selectedcontent></selectedcontent></button><option><span>Lemon</span></option></select>`,
2607+
transformOptions: transform.TransformOptions{
2608+
ExperimentalExactParsingThingy: true,
2609+
},
25952610
},
25962611
}
25972612
for _, tt := range tests {

0 commit comments

Comments
 (0)