aspnetcore/test/testapps/BasicTestApp/wwwroot/index.html

24 lines
791 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Basic test app</title>
</head>
<body>
<app>Loading...</app>
<script type="blazor-boot"></script>
<script>
// The client-side .NET code calls this when it is ready to be called from test code
// The Xunit test code polls until it sees the flag is set
Blazor.registerFunction('testReady', function () { window.isTestReady = true; });
// The Xunit test code calls this when setting up tests for specific components
function mountTestComponent(typeName) {
var method = Blazor.platform.findMethod('BasicTestApp', 'BasicTestApp', 'Program', 'MountTestComponent');
Blazor.platform.callMethod(method, null, [Blazor.platform.toDotNetString(typeName)]);
}
</script>
</body>
</html>