MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / test_driver_url

Function test_driver_url

rust/src/electron.rs:348–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346
347 #[test]
348 fn test_driver_url() {
349 let mut electron_manager = ElectronManager::new().unwrap();
350
351 let data = vec![
352 vec![
353 "windows",
354 "x86",
355 "https://github.com/electron/electron/releases/download/v36.2.1/chromedriver-v36.2.1-win32-ia32.zip",
356 ],
357 vec![
358 "windows",
359 "x86_64",
360 "https://github.com/electron/electron/releases/download/v36.2.1/chromedriver-v36.2.1-win32-x64.zip",
361 ],
362 vec![
363 "windows",
364 "aarch64",
365 "https://github.com/electron/electron/releases/download/v36.2.1/chromedriver-v36.2.1-win32-arm64.zip",
366 ],
367 vec![
368 "macos",
369 "aarch64",
370 "https://github.com/electron/electron/releases/download/v36.2.1/chromedriver-v36.2.1-mas-arm64.zip",
371 ],
372 vec![
373 "linux",
374 "aarch64",
375 "https://github.com/electron/electron/releases/download/v36.2.1/chromedriver-v36.2.1-linux-arm64.zip",
376 ],
377 ];
378
379 electron_manager.set_driver_version("36.2.1".to_string());
380 data.iter().for_each(|d| {
381 electron_manager.set_os(d.first().unwrap().to_string());
382 electron_manager.set_arch(d.get(1).unwrap().to_string());
383 let driver_url = electron_manager.get_driver_url().unwrap();
384 assert_eq!(d.get(2).unwrap().to_string(), driver_url);
385 });
386 }
387
388 #[test]
389 fn specific_version_is_returned_verbatim() {

Callers

nothing calls this directly

Calls 5

set_driver_versionMethod · 0.80
set_osMethod · 0.80
set_archMethod · 0.80
getMethod · 0.65
get_driver_urlMethod · 0.45

Tested by

no test coverage detected