mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
channel: master version: 1.1.0 source-ref: master published-at-utc: 2026-03-20T14:14:07Z
24 lines
476 B
Go
24 lines
476 B
Go
package browser
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestBuildLaunchArgsAppendsDefaultVerificationURLs(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
baseArgs := []string{"--disable-sync"}
|
|
got := BuildLaunchArgs(append([]string{}, baseArgs...), &Profile{})
|
|
want := []string{
|
|
"--disable-sync",
|
|
"https://ippure.com/",
|
|
"https://iplark.com/",
|
|
"https://ping0.cc/",
|
|
}
|
|
|
|
if !reflect.DeepEqual(got, want) {
|
|
t.Fatalf("BuildLaunchArgs 结果错误:\n got=%v\nwant=%v", got, want)
|
|
}
|
|
}
|