Skip to content

Commit e24f7b7

Browse files
committed
Fix golint errors
1 parent 90ccd46 commit e24f7b7

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

chrome/capabilities.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ import (
1717
"github.com/tebeka/selenium/internal/zip"
1818
)
1919

20-
// DeprecatedCapabilitiesKey and CapabilitiesKey are the key in the top-level
21-
// Capabilities map under which ChromeDriver expects the Chrome-specific
22-
// options to be set.
23-
const DeprecatedCapabilitiesKey = "chromeOptions"
20+
// CapabilitiesKey is the key in the top-level Capabilities map under which
21+
// ChromeDriver expects the Chrome-specific options to be set.
2422
const CapabilitiesKey = "goog:chromeOptions"
2523

24+
// DeprecatedCapabilitiesKey is the legacy version of CapabilitiesKey.
25+
const DeprecatedCapabilitiesKey = "chromeOptions"
26+
2627
// Capabilities defines the Chrome-specific desired capabilities when using
2728
// ChromeDriver. An instance of this struct can be stored in the Capabilities
2829
// map with a key of CapabilitiesKey ("goog:chromeOptions"). See

log/log.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const (
4040
// Chrome 75, "loggingPrefs" has been changed to "goog:loggingPrefs"
4141
const CapabilitiesKey = "goog:loggingPrefs"
4242

43-
// Capability is the map to include in the WebDriver capabilities structure to
44-
// configure logging.
43+
// Capabilities is the map to include in the WebDriver capabilities structure
44+
// to configure logging.
4545
type Capabilities map[Type]Level
4646

4747
// Message is a log message returned from the Log method.

sauce/sauce.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,20 @@ type Capabilities struct {
9595
WebDriverScreenshot *bool `json:"webdriverRemoteQuietExceptions,omitempty"`
9696
}
9797

98-
// A visibility level for a test.
98+
// Visibility is a visibility level for a test.
9999
type Visibility string
100100

101101
const (
102-
// The test is accessible to everyone.
102+
// Public is the visibility to specify that the result is accessible to everyone.
103103
Public Visibility = "public"
104-
// Allow anonymous users access to the result page and video, but not the
105-
// logs.
104+
// PublicRestricted is the visibility to specify that anonymous users have
105+
// access to the result page and video, but not the logs.
106106
PublicRestricted Visibility = "public restricted"
107-
// Make the test be only accessible to people under the same root account as
108-
// you.
107+
// Team is the visibility to specify that the results are only accessible to
108+
// people under the same root account as the executor's.
109109
Team Visibility = "team"
110-
// Only the owner of the test will be able to view assets and test result
111-
// page.
110+
// Private is the visibility to specify that only the owner of the test will
111+
// be able to view assets and test result page.
112112
Private Visibility = "private"
113113
)
114114

0 commit comments

Comments
 (0)