summaryrefslogtreecommitdiff
path: root/vendor/github.com/playwright-community/playwright-go/download.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-12 16:33:27 -0600
committermo khan <mo@mokhan.ca>2025-05-12 16:33:27 -0600
commit29b59441a4bbada64d8d07bd2609f15dfde670e5 (patch)
tree3b3583edb261279cfcdfd9eed904d118c4bf67b1 /vendor/github.com/playwright-community/playwright-go/download.go
parent78ccd9a4312eab7e11da4413733a12953f88a4fe (diff)
test: remove UI tests
Diffstat (limited to 'vendor/github.com/playwright-community/playwright-go/download.go')
-rw-r--r--vendor/github.com/playwright-community/playwright-go/download.go56
1 files changed, 0 insertions, 56 deletions
diff --git a/vendor/github.com/playwright-community/playwright-go/download.go b/vendor/github.com/playwright-community/playwright-go/download.go
deleted file mode 100644
index b9d2024..0000000
--- a/vendor/github.com/playwright-community/playwright-go/download.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package playwright
-
-type downloadImpl struct {
- page *pageImpl
- url string
- suggestedFilename string
- artifact *artifactImpl
-}
-
-func (d *downloadImpl) String() string {
- return d.SuggestedFilename()
-}
-
-func (d *downloadImpl) Page() Page {
- return d.page
-}
-
-func (d *downloadImpl) URL() string {
- return d.url
-}
-
-func (d *downloadImpl) SuggestedFilename() string {
- return d.suggestedFilename
-}
-
-func (d *downloadImpl) Delete() error {
- err := d.artifact.Delete()
- return err
-}
-
-func (d *downloadImpl) Failure() error {
- return d.artifact.Failure()
-}
-
-func (d *downloadImpl) Path() (string, error) {
- path, err := d.artifact.PathAfterFinished()
- return path, err
-}
-
-func (d *downloadImpl) SaveAs(path string) error {
- err := d.artifact.SaveAs(path)
- return err
-}
-
-func (d *downloadImpl) Cancel() error {
- return d.artifact.Cancel()
-}
-
-func newDownload(page *pageImpl, url string, suggestedFilename string, artifact *artifactImpl) *downloadImpl {
- return &downloadImpl{
- page: page,
- url: url,
- suggestedFilename: suggestedFilename,
- artifact: artifact,
- }
-}