Skip to content

Fork location so we can install and use this prior to upstream PR merge #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/wjdp/htmltest
module github.com/theunrepentantgeek/htmltest

require (
github.com/badoux/checkmail v1.2.1
Expand Down
4 changes: 2 additions & 2 deletions htmldoc/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path"
"sync"

"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/output"
"golang.org/x/net/html"
)

Expand Down Expand Up @@ -100,7 +100,7 @@ func (doc *Document) parseNode(n *html.Node) {
fmt.Printf("%+v\n", n)
fmt.Println("Oops, in parsing your HTML we fell over.\n",
"Please let the developer know about this.\n",
"https://github.com/wjdp/htmltest/issues/new")
"https://github.com/theunrepentantgeek/htmltest/issues/new")
}

// Iterate over children
Expand Down
2 changes: 1 addition & 1 deletion htmldoc/document_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path"
"regexp"

"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/output"
)

// DocumentStore struct, store of Documents including Document discovery
Expand Down
4 changes: 2 additions & 2 deletions htmltest/check-doctype.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package htmltest

import (
"fmt"
"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
)

func (hT *HTMLTest) checkDoctype(document *htmldoc.Document) {
Expand Down
4 changes: 2 additions & 2 deletions htmltest/check-generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package htmltest
import (
"fmt"

"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
"golang.org/x/net/html"
)

Expand Down
2 changes: 1 addition & 1 deletion htmltest/check-generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"path"
"testing"

"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/issues"
)

var genericTests = []struct {
Expand Down
4 changes: 2 additions & 2 deletions htmltest/check-img.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package htmltest

import (
"fmt"
"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
"golang.org/x/net/html"
"regexp"
)
Expand Down
11 changes: 6 additions & 5 deletions htmltest/check-link.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ import (
"strings"

"github.com/badoux/checkmail"
"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/output"
"golang.org/x/net/html"
)

// ignoredRels: List of rel values to ignore, dns-prefetch and preconnect are ignored as they are not links to be
// followed rather telling browser we want something on that host, if the root of that host is not valid,
// it's likely not a problem.
//
// followed rather telling browser we want something on that host, if the root of that host is not valid,
// it's likely not a problem.
var ignoredRels = [...]string{"dns-prefetch", "preconnect"}

func (hT *HTMLTest) checkLink(document *htmldoc.Document, node *html.Node) {
Expand Down
4 changes: 2 additions & 2 deletions htmltest/check-link_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package htmltest
import (
"testing"

"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/issues"
)

// Spec tests
Expand Down Expand Up @@ -516,7 +516,7 @@ func TestAnchorInternalHashBlankDefault(t *testing.T) {

func TestAnchorInternalHashBlankOption(t *testing.T) {
// passes for href="#" when asked, see
// https://github.com/wjdp/htmltest/issues/30
// https://github.com/theunrepentantgeek/htmltest/issues/30
hT1 := tTestFileOpts("fixtures/links/hash_href.html",
map[string]interface{}{"CheckInternalHash": false})
tExpectIssueCount(t, hT1, 0)
Expand Down
4 changes: 2 additions & 2 deletions htmltest/check-meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package htmltest

import (
"fmt"
"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
"golang.org/x/net/html"
"regexp"
)
Expand Down
4 changes: 2 additions & 2 deletions htmltest/check-script.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package htmltest

import (
"fmt"
"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
"golang.org/x/net/html"
)

Expand Down
2 changes: 1 addition & 1 deletion htmltest/external_benchmark_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package htmltest

import (
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/issues"
"testing"
)

Expand Down
8 changes: 4 additions & 4 deletions htmltest/htmltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"sync"
"time"

"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/issues"
"github.com/wjdp/htmltest/output"
"github.com/wjdp/htmltest/refcache"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/output"
"github.com/theunrepentantgeek/htmltest/refcache"
"gopkg.in/seborama/govcr.v4"
)

Expand Down
2 changes: 1 addition & 1 deletion htmltest/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/imdario/mergo"
"github.com/wjdp/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/issues"
)

// Options struct for htmltest, user and default options are merged and mapped
Expand Down
2 changes: 1 addition & 1 deletion htmltest/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/daviddengcn/go-assert"
"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/output"
)

func TestDefaultOptions(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions htmltest/test_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package htmltest

import (
"github.com/imdario/mergo"
"github.com/wjdp/htmltest/issues"
"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/issues"
"github.com/theunrepentantgeek/htmltest/output"
"path"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion issues/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package issues
import (
"fmt"
"github.com/fatih/color"
"github.com/wjdp/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/htmldoc"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions issues/issue_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package issues
import (
"fmt"
"github.com/fatih/color"
"github.com/wjdp/htmltest/htmldoc"
"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/output"
"io/ioutil"
"strings"
"sync"
Expand Down
2 changes: 1 addition & 1 deletion issues/issue_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package issues

import (
"github.com/daviddengcn/go-assert"
"github.com/wjdp/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"io/ioutil"
"os"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion issues/issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package issues

import (
"github.com/daviddengcn/go-assert"
"github.com/wjdp/htmltest/htmldoc"
"github.com/theunrepentantgeek/htmltest/htmldoc"
"testing"
)

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/fatih/color"
"github.com/wjdp/htmltest/htmltest"
"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/htmltest"
"github.com/theunrepentantgeek/htmltest/output"
"gopkg.in/yaml.v2"
"io/ioutil"
"os"
Expand All @@ -25,7 +25,7 @@ var (

func main() {
usage := `htmltest - Test generated HTML for problems
https://github.com/wjdp/htmltest
https://github.com/theunrepentantgeek/htmltest

Usage:
htmltest [options] [<path>]
Expand Down
2 changes: 1 addition & 1 deletion refcache/refcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package refcache

import (
"encoding/json"
"github.com/wjdp/htmltest/output"
"github.com/theunrepentantgeek/htmltest/output"
"os"
"path"
"sync"
Expand Down