Fix testcase for bug 429614 to check platform (cmd-a vs ctrl-a)

This commit is contained in:
edward.lee@engineering.uiuc.edu 2008-04-19 01:47:09 -07:00
parent 228a15a6ee
commit d8a11e1c31

View File

@ -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