Skip to content

Commit

Permalink
v1.0.0-rc9: migrate to modules (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkenney authored Apr 12, 2022
1 parent e294338 commit 8c4fd97
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 83 deletions.
68 changes: 0 additions & 68 deletions Gopkg.lock

This file was deleted.

7 changes: 0 additions & 7 deletions Gopkg.toml

This file was deleted.

17 changes: 17 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module github.com/mkenney/go-chrome

go 1.18

require (
github.com/bdlm/errors v0.1.1
github.com/bdlm/log v0.1.20
github.com/bdlm/std v1.0.1
github.com/gorilla/websocket v1.5.0
)

require (
github.com/stretchr/testify v1.7.1 // indirect
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
golang.org/x/sys v0.0.0-20220412071739-889880a91fd5 // indirect
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect
)
2 changes: 1 addition & 1 deletion tot/socket/cdtp.accessibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestAccessibilityGetPartialAXTree(t *testing.T) {
Description: &accessibility.AXValue{},
Value: &accessibility.AXValue{},
Properties: []*accessibility.AXProperty{},
ChildIDs: []accessibility.AXNodeID{accessibility.AXNodeID(1)},
ChildIDs: []accessibility.AXNodeID{accessibility.AXNodeID(rune(1))},
BackendDOMNodeID: dom.BackendNodeID(1),
}},
}
Expand Down
14 changes: 7 additions & 7 deletions tot/socket/cdtp.application.cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func TestApplicationCacheEnable(t *testing.T) {
socketURL, _ := url.Parse("https://test:9222/TestApplicationCacheEnable")
mockSocket := NewMock(socketURL)
go func() {_ = mockSocket.Listen()}()
go func() { _ = mockSocket.Listen() }()
defer mockSocket.Stop()

resultChan := mockSocket.ApplicationCache().Enable()
Expand Down Expand Up @@ -44,7 +44,7 @@ func TestApplicationCacheEnable(t *testing.T) {
func TestApplicationCacheGetForFrame(t *testing.T) {
socketURL, _ := url.Parse("https://test:9222/TestApplicationCacheGetForFrame")
mockSocket := NewMock(socketURL)
go func() {_ = mockSocket.Listen()}()
go func() { _ = mockSocket.Listen() }()
defer mockSocket.Stop()

mockParams := &application_cache.GetForFrameParams{FrameID: page.FrameID("mock-frame-id")}
Expand Down Expand Up @@ -101,13 +101,13 @@ func TestApplicationCacheGetForFrame(t *testing.T) {
func TestApplicationCacheGetFramesWithManifests(t *testing.T) {
socketURL, _ := url.Parse("https://test:9222/TestApplicationCacheGetFramesWithManifests")
mockSocket := NewMock(socketURL)
go func() {_ = mockSocket.Listen()}()
go func() { _ = mockSocket.Listen() }()
defer mockSocket.Stop()

resultChan := mockSocket.ApplicationCache().GetFramesWithManifests()
mockResult := &application_cache.GetFramesWithManifestsResult{
FrameIDs: []*application_cache.FrameWithManifest{{
FrameID: page.FrameID(1),
FrameID: page.FrameID(rune(1)),
ManifestURL: "http://example.com/manifest",
Status: 1,
}},
Expand Down Expand Up @@ -148,7 +148,7 @@ func TestApplicationCacheGetFramesWithManifests(t *testing.T) {
func TestApplicationCacheGetManifestForFrame(t *testing.T) {
socketURL, _ := url.Parse("https://test:9222/TestApplicationCacheGetManifestForFrame")
mockSocket := NewMock(socketURL)
go func() {_ = mockSocket.Listen()}()
go func() { _ = mockSocket.Listen() }()
defer mockSocket.Stop()

resultChan := mockSocket.ApplicationCache().GetManifestForFrame(&application_cache.GetManifestForFrameParams{
Expand Down Expand Up @@ -195,7 +195,7 @@ func TestApplicationCacheGetManifestForFrame(t *testing.T) {
func TestApplicationCacheOnApplicationCacheStatusUpdated(t *testing.T) {
socketURL, _ := url.Parse("https://test:9222/TestApplicationCacheOnApplicationCacheStatusUpdated")
mockSocket := NewMock(socketURL)
go func() {_ = mockSocket.Listen()}()
go func() { _ = mockSocket.Listen() }()
defer mockSocket.Stop()

resultChan := make(chan *application_cache.StatusUpdatedEvent)
Expand Down Expand Up @@ -245,7 +245,7 @@ func TestApplicationCacheOnApplicationCacheStatusUpdated(t *testing.T) {
func TestApplicationCacheOnNetworkStateUpdated(t *testing.T) {
socketURL, _ := url.Parse("https://test:9222/TestApplicationCacheOnNetworkStateUpdated")
mockSocket := NewMock(socketURL)
go func() {_ = mockSocket.Listen()}()
go func() { _ = mockSocket.Listen() }()
defer mockSocket.Stop()

resultChan := make(chan *application_cache.NetworkStateUpdatedEvent)
Expand Down

0 comments on commit 8c4fd97

Please sign in to comment.