mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Fix testcase for bug 429614 to check platform (cmd-a vs ctrl-a)
This commit is contained in:
parent
228a15a6ee
commit
d8a11e1c31
@ -97,7 +97,8 @@ function test()
|
||||
is(downloadView.itemCount, sites.length, "All downloads displayed");
|
||||
|
||||
// Select all downloads
|
||||
EventUtils.synthesizeKey("a", { metaKey: true}, win);
|
||||
let isMac = navigator.platform.search("Mac") == 0;
|
||||
EventUtils.synthesizeKey("a", { metaKey: isMac, ctrlKey: !isMac }, win);
|
||||
is(downloadView.selectedCount, sites.length, "All downloads selected");
|
||||
|
||||
// Delete all downloads
|
||||
|
Loading…
Reference in New Issue
Block a user