예제 #1
0
 public InteropTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
 }
예제 #2
0
 public ProtectedBrowserStorageUsageTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <BasicTestApp.Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output)
 {
 }
예제 #3
0
 public DownloadAnchorTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output)
 {
 }
예제 #4
0
 public WebAssemblyICUShardingTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
 }
 public ErrorNotificationTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
 }
예제 #6
0
 public CascadingValueTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
 }
예제 #7
0
 public ComponentRenderingTest(BrowserFixture browserFixture,
                               ToggleExecutionModeServerFixture <DevHostServerProgram> serverFixture,
                               ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     Navigate(ServerPathBase, noReload: !serverFixture.UsingAspNetHost);
 }
예제 #8
0
 public JsonSerializationTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
 }
 public ComponentRenderingTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
 }
예제 #10
0
 public ServerInteropTestDefaultExceptionsBehavior(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output)
 {
 }
예제 #11
0
 public AuthTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : this(browserFixture, serverFixture, output, ExecutionMode.Client)
 {
 }
 public CircuitGracefulTerminationTests(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output)
 {
 }
예제 #13
0
 public ValidateSelectTest(BrowserFixture browserFixture,
                           ToggleExecutionModeServerFixture <DevHostServerProgram> serverFixture,
                           ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     Navigate(ServerPathBase, noReload: !serverFixture.UsingAspNetHost);
     MountTestComponent <ValidateSelectComponent>();
 }
예제 #14
0
 public BasicTestAppTestBase(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     serverFixture.PathBase = ServerPathBase;
 }
예제 #15
0
 public RoutingTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     Navigate(ServerPathBase, noReload: false);
     WaitUntilTestSelectorReady();
 }
예제 #16
0
 public CascadingValueTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     Navigate(ServerPathBase, noReload: !serverFixture.UsingAspNetHost);
     MountTestComponent <BasicTestApp.CascadingValueTest.CascadingValueSupplier>();
 }
예제 #17
0
 public FormsTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     // On WebAssembly, page reloads are expensive so skip if possible
     Navigate(ServerPathBase, noReload: !serverFixture.UsingAspNetHost);
 }
예제 #18
0
        // Note that currently we only support custom events if they have bubble:true.
        // That's because the event delegator doesn't know which custom events bubble and which don't,
        // so it doesn't know whether to register a normal handler or a capturing one. If this becomes
        // a problem, we could consider registering both types of handler and just bailing out from
        // the one that doesn't match the 'bubbles' flag on the received event object.

        public EventBubblingTest(
            BrowserFixture browserFixture,
            ToggleExecutionModeServerFixture <Program> serverFixture,
            ITestOutputHelper output)
            : base(browserFixture, serverFixture, output)
        {
            Navigate(ServerPathBase, noReload: !serverFixture.UsingAspNetHost);
            MountTestComponent <EventBubblingComponent>();
        }
예제 #19
0
 public InteropTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     Navigate(ServerPathBase, noReload: true);
     MountTestComponent <InteropComponent>();
 }
예제 #20
0
 public HttpClientTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <BasicTestApp.Program> devHostServerFixture,
     AspNetSiteServerFixture apiServerFixture,
     ITestOutputHelper output)
     : base(browserFixture, devHostServerFixture, output)
 {
     apiServerFixture.BuildWebHostMethod = TestServer.Program.BuildWebHost;
     _apiServerFixture = apiServerFixture;
 }
예제 #21
0
 public EventCallbackTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     // On WebAssembly, page reloads are expensive so skip if possible
     Navigate(ServerPathBase, noReload: !serverFixture.UsingAspNetHost);
     MountTestComponent <BasicTestApp.EventCallbackTest.EventCallbackCases>();
 }
예제 #22
0
 public AuthTest(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <Program> serverFixture,
     ITestOutputHelper output)
     : base(browserFixture, serverFixture, output)
 {
     // Normally, the E2E tests use the Blazor dev server if they are testing
     // client-side execution. But for the auth tests, we always have to run
     // in "hosted on ASP.NET Core" mode, because we get the auth state from it.
     serverFixture.UseAspNetHost(TestServer.Program.BuildWebHost);
 }
예제 #23
0
        public BinaryHttpClientTest(
            BrowserFixture browserFixture,
            ToggleExecutionModeServerFixture <BasicTestApp.Program> devHostServerFixture,
            AspNetSiteServerFixture apiServerFixture,
            ITestOutputHelper output)
            : base(browserFixture, devHostServerFixture, output)
        {
            apiServerFixture.BuildWebHostMethod = TestServer.Program.BuildWebHost;
            _apiServerFixture = apiServerFixture;

            Navigate(ServerPathBase, noReload: true);
            _appElement = MountTestComponent <BinaryHttpRequestsComponent>();
        }
예제 #24
0
        protected AuthTest(
            BrowserFixture browserFixture,
            ToggleExecutionModeServerFixture <Program> serverFixture,
            ITestOutputHelper output,
            ExecutionMode executionMode)
            : base(browserFixture, serverFixture, output)
        {
            // Normally, the E2E tests use the Blazor dev server if they are testing
            // client-side execution. But for the auth tests, we always have to run
            // in "hosted on ASP.NET Core" mode, because we get the auth state from it.
            switch (executionMode)
            {
            case ExecutionMode.Client:
                serverFixture.UseAspNetHost(TestServer.Program.BuildWebHost <TestServer.AuthenticationStartup>);
                break;

            case ExecutionMode.Server:
                serverFixture.UseAspNetHost(TestServer.Program.BuildWebHost <TestServer.ServerAuthenticationStartup>);
                break;

            default:
                break;
            }
        }
예제 #25
0
 public ServerAuthTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture <BasicTestApp.Program> serverFixture, ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output, ExecutionMode.Server)
 {
 }
예제 #26
0
 public FormsTestWithExperimentalValidator(
     BrowserFixture browserFixture,
     ToggleExecutionModeServerFixture <BasicTestApp.Program> serverFixture,
     ITestOutputHelper output) : base(browserFixture, serverFixture, output)
 {
 }
예제 #27
0
 public ServerInteropTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture <Program> serverFixture, ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution().WithAdditionalArguments(GetAdditionalArguments()), output)
 {
 }
예제 #28
0
 public static ToggleExecutionModeServerFixture <T> WithServerExecution <T, TStartup>(this ToggleExecutionModeServerFixture <T> serverFixture) where TStartup : class
 {
     serverFixture.UseAspNetHost(Program.BuildWebHost <TStartup>);
     serverFixture.ExecutionMode = ExecutionMode.Server;
     return(serverFixture);
 }
예제 #29
0
 public ServerVirtualizationTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture <Program> serverFixture, ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output)
 {
 }
예제 #30
0
 public ServerEventCallbackTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture <Program> serverFixture, ITestOutputHelper output)
     : base(browserFixture, serverFixture.WithServerExecution(), output)
 {
 }