internal/testing/pagecheck: delete Overview and OverviewDetails
The overview tab no longer exists.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -37,16 +37,6 @@ type Page struct {
CommitTime string
}
-// Overview describes the contents of the overview tab.
-type Overview struct {
- ModuleLink string // relative link to module page
- ModuleLinkText string
- RepoURL string
- PackageURL string
- ReadmeContent string
- ReadmeSource string
-}
-
var (
in = htmlcheck.In
inAll = htmlcheck.InAll
@@ -236,26 +226,6 @@ func LicenseDetails(ltype, bodySubstring, source string) htmlcheck.Checker {
exactText("Source: "+source)))
}
-// OverviewDetails checks the details section of an overview tab.
-func OverviewDetails(ov *Overview) htmlcheck.Checker {
- var pkg htmlcheck.Checker
- if ov.PackageURL != "" {
- pkg = in(".Overview-sourceCodeLink a:nth-of-type(2)",
- href(ov.PackageURL),
- exactText(ov.PackageURL))
- }
- return in("",
- in("div.Overview-module > a",
- href(ov.ModuleLink),
- exactText(ov.ModuleLinkText)),
- in(".Overview-sourceCodeLink a:nth-of-type(1)",
- href(ov.RepoURL),
- exactText(ov.RepoURL)),
- pkg,
- in(".Overview-readmeContent", text(ov.ReadmeContent)),
- in(".Overview-readmeSource", exactText("Source: "+ov.ReadmeSource)))
-}
-
// versionBadge checks the latest-version badge on a header.
func versionBadge(p *Page) htmlcheck.Checker {
class := "DetailsHeader-badge"
