diff --git a/eval.go b/eval.go index 76cf95a..fa8cca3 100644 --- a/eval.go +++ b/eval.go @@ -76,7 +76,7 @@ func EvaluateAsDevTools(expression string, res interface{}, opts ...EvaluateOpti return Evaluate(expression, res, append(opts, EvalObjectGroup("console"), EvalWithCommandLineAPI)...) } -// EvaluateOption is the type for script evaulation options. +// EvaluateOption is the type for script evaluation options. type EvaluateOption func(*rundom.EvaluateParams) *rundom.EvaluateParams // EvalObjectGroup is a evaluate option to set the object group. diff --git a/nav_test.go b/nav_test.go index 9f5e1b7..ed8479b 100644 --- a/nav_test.go +++ b/nav_test.go @@ -323,7 +323,7 @@ func TestCaptureScreenshot(t *testing.T) { } if len(buf) == 0 { - t.Fatal("failed to capture screenshoot") + t.Fatal("failed to capture screenshot") } //TODO: test image } diff --git a/query_test.go b/query_test.go index 3126ea4..8bdb2da 100644 --- a/query_test.go +++ b/query_test.go @@ -718,7 +718,7 @@ func TestScreenshot(t *testing.T) { } if len(buf) == 0 { - t.Fatalf("test %d failed to capture screenshoot", i) + t.Fatalf("test %d failed to capture screenshot", i) } //TODO: test image }