Files
kjol/tools/tsgo/internal/fourslash/tests/gen/getJSXOutliningSpans_test.go
2026-07-09 16:50:43 -04:00

55 lines
1.3 KiB
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual getJSXOutliningSpans"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGetJSXOutliningSpans(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `import React, { Component } from 'react';
export class Home extends Component[| {
render()[| {
return [|(
[|<div>
[|<h1>Hello, world!</h1>|]
[|<ul>
[|<li>
[|<a [|href='https://get.asp.net/'|]>
ASP.NET Core
</a>|]
</li>|]
[|<li>[|<a [|href='https://facebook.github.io/react/'|]>React</a>|] for client-side code</li>|]
[|<li>[|<a [|href='http://getbootstrap.com/'|]>Bootstrap</a>|] for layout and styling</li>|]
</ul>|]
<div
[|accesskey="test"
class="active"
dir="auto"|] />
<PageHeader [|title="Log in"
{...[|{
item: true,
xs: 9,
md: 5
}|]}|]
/>
[|<>
text
</>|]
</div>|]
)|];
}|]
}|]`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyOutliningSpans(t)
}