mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
test(protocol): align handshake fixtures with 1.0 floor and clarify v2/v3 naming
This commit is contained in:
@@ -119,7 +119,7 @@ async fn handshake_as_ext(
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
@@ -83,7 +83,7 @@ async fn handshake_as_ext(
|
||||
},
|
||||
label: "Test".into(),
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
id: "hs".into(),
|
||||
|
||||
@@ -88,7 +88,7 @@ async fn handshake_as_ext(
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
@@ -89,7 +89,7 @@ async fn handshake_as_ext(
|
||||
},
|
||||
label: "Test".into(),
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
id: "hs".into(),
|
||||
|
||||
@@ -93,7 +93,7 @@ async fn handshake_as_ext(ws: &mut TestWs) -> HandshakeResult {
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
@@ -765,7 +765,7 @@ async fn connect_second_ext(
|
||||
version: "130".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: label.into(),
|
||||
};
|
||||
let hs = RequestFrame {
|
||||
|
||||
@@ -80,7 +80,7 @@ async fn do_handshake(ws: &mut Ws) -> HandshakeResult {
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
@@ -83,7 +83,7 @@ async fn do_handshake(ws: &mut Ws) -> HandshakeResult {
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
@@ -82,7 +82,7 @@ async fn do_handshake(ws: &mut Ws) -> HandshakeResult {
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
@@ -92,7 +92,7 @@ async fn do_handshake(ws: &mut Ws) -> HandshakeResult {
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
@@ -60,7 +60,7 @@ pub async fn send_handshake(
|
||||
version: "131.0".into(),
|
||||
},
|
||||
min_compatible_peer: Some("0.1.0-dev.0".parse().unwrap()),
|
||||
min_compatible_protocol: Some("1.1".into()),
|
||||
min_compatible_protocol: Some("1.0".into()),
|
||||
label: "Test Chrome".into(),
|
||||
};
|
||||
let req = RequestFrame {
|
||||
|
||||
Reference in New Issue
Block a user