mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
21 lines
403 B
Go
21 lines
403 B
Go
package browser
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestBuildLaunchArgsAppendsDefaultVerificationURLs(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
baseArgs := []string{"--disable-sync"}
|
|
got := BuildLaunchArgs(append([]string{}, baseArgs...), []string{})
|
|
want := []string{
|
|
"--disable-sync",
|
|
}
|
|
|
|
if !reflect.DeepEqual(got, want) {
|
|
t.Fatalf("BuildLaunchArgs 结果错误:\n got=%v\nwant=%v", got, want)
|
|
}
|
|
}
|