зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1618286 - Test for subset of adb features in unit test, not exact set r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65176 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
033996289a
Коммит
3450d76ee5
|
@ -100,10 +100,9 @@ fn host_features() {
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
let mut set = BTreeSet::new();
|
||||
set.insert("cmd".to_owned());
|
||||
set.insert("shell_v2".to_owned());
|
||||
assert_eq!(set, host.features().expect("to query features"));
|
||||
let set = host.features::<BTreeSet<_>>().expect("to query features");
|
||||
assert!(set.contains("cmd"));
|
||||
assert!(set.contains("shell_v2"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Загрузка…
Ссылка в новой задаче