Skip to content

Commit

Permalink
Clean up test project
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyaulee committed Sep 18, 2024
1 parent c2da6e7 commit daf6f5f
Show file tree
Hide file tree
Showing 38 changed files with 90 additions and 1,159 deletions.
1 change: 1 addition & 0 deletions WebExtensions.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{37728F80-FC9
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tool", "tool", "{4C80786C-7306-4DCC-A96F-9305D50DF7D5}"
ProjectSection(SolutionItems) = preProject
tool\DependenciesUpdater.ps1 = tool\DependenciesUpdater.ps1
tool\LanguageCodeUpdater.ps1 = tool\LanguageCodeUpdater.ps1
EndProjectSection
EndProject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<RouteView RouteData="@routeData" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<LayoutView>
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
</Router>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@page "/tests.html"
@using WebExtensions.Net.BrowserExtensionIntegrationTest.Infrastructure
@inherits Blazor.BrowserExtension.Pages.BasePage
@inject NavigationManager NavigationManager

@code {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using WebExtensions.Net.BrowserExtensionIntegrationTest.Infrastructure;

Expand All @@ -14,8 +12,7 @@ public static async Task Main(string[] args)
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddBrowserExtensionServices();
builder.Services.AddWebExtensions();
builder.Services.AddScoped<ITestFactory, TestFactory>();
builder.Services.AddScoped<ITestRunner, TestRunner>();

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Blazor.BrowserExtension" Version="1.3.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.5" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
<PackageReference Include="Blazor.BrowserExtension.Build" Version="2.0.0" />
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.8" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<None Include="wwwroot\**\*" CopyToOutputDirectory="Always" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\WebExtensions.Net\WebExtensions.Net.csproj" />
<ProjectReference Include="..\..\src\WebExtensions.Net.Extensions.DependencyInjection\WebExtensions.Net.Extensions.DependencyInjection.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
@using Microsoft.JSInterop
@using WebExtensions.Net.BrowserExtensionIntegrationTest
@using WebExtensions.Net.BrowserExtensionIntegrationTest.Models
@using WebExtensions.Net.BrowserExtensionIntegrationTest.Shared
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Import for the side effect of defining a global 'browser' variable
import * as _ from "/content/Blazor.BrowserExtension/lib/browser-polyfill.min.js";
import * as _ from "/js/browser-polyfill.min.js";

browser.runtime.onInstalled.addListener(() => {
const indexPageUrl = browser.runtime.getURL("options.html");
Expand Down
Loading

0 comments on commit daf6f5f

Please sign in to comment.