diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-28 21:24:32 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-28 21:24:32 +0200 |
commit | 3170ee7692ef30ee67f26219b19b2b4115c01a56 (patch) | |
tree | 68c69d03e2e707d6c6c957e73942a638b8c50277 /toolkit/components/places/tests/unit | |
parent | 1545320721d22045168b1ca15f924f4143128512 (diff) | |
download | UXP-3170ee7692ef30ee67f26219b19b2b4115c01a56.tar UXP-3170ee7692ef30ee67f26219b19b2b4115c01a56.tar.gz UXP-3170ee7692ef30ee67f26219b19b2b4115c01a56.tar.lz UXP-3170ee7692ef30ee67f26219b19b2b4115c01a56.tar.xz UXP-3170ee7692ef30ee67f26219b19b2b4115c01a56.zip |
Hide and disable open_all/cut/copy/delete/properties when opening
bookmarks/history context menu with no selection
This resolves #882 (by not offering options that can't be used)
Diffstat (limited to 'toolkit/components/places/tests/unit')
-rw-r--r-- | toolkit/components/places/tests/unit/test_utils_getURLsForContainerNode.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolkit/components/places/tests/unit/test_utils_getURLsForContainerNode.js b/toolkit/components/places/tests/unit/test_utils_getURLsForContainerNode.js index ecebce94a..3e2f88c21 100644 --- a/toolkit/components/places/tests/unit/test_utils_getURLsForContainerNode.js +++ b/toolkit/components/places/tests/unit/test_utils_getURLsForContainerNode.js @@ -165,6 +165,7 @@ function check_uri_nodes(aQuery, aOptions, aExpectedURINodes) { root.containerOpen = true; var node = root.getChild(0); do_check_eq(PU.hasChildURIs(node), aExpectedURINodes > 0); + do_check_eq(PU.hasChildURIs(node, true), aExpectedURINodes > 1); do_check_eq(PU.getURLsForContainerNode(node).length, aExpectedURINodes); root.containerOpen = false; } |