diff --git a/collects/drracket/private/unit.rkt b/collects/drracket/private/unit.rkt index 637c271613..c466dcf3ec 100644 --- a/collects/drracket/private/unit.rkt +++ b/collects/drracket/private/unit.rkt @@ -3612,13 +3612,18 @@ module browser threading seems wrong. (parent language-specific-menu) (callback (λ (_1 _2) - (let ([ints (send (get-current-tab) get-ints)]) - (send ints reset-error-ranges)))) + (let* ([tab (get-current-tab)] + [ints (send tab get-ints)] + [defs (send tab get-defs)]) + (send ints reset-error-ranges) + (send defs clear-test-coverage)))) (help-string (string-constant clear-error-highlight-item-help-string)) (demand-callback (λ (item) - (let ([ints (send (get-current-tab) get-ints)]) - (send item enable (send ints get-error-ranges)))))) + (let* ([tab (get-current-tab)] + [ints (send tab get-ints)]) + (send item enable (or (send ints get-error-ranges) + (send tab get-test-coverage-info-visible?))))))) (make-object separator-menu-item% language-specific-menu) (make-object menu:can-restore-menu-item% (string-constant create-executable-menu-item-label) diff --git a/collects/scribblings/drracket/menus.scrbl b/collects/scribblings/drracket/menus.scrbl index 8331f38f09..bc13ca80e8 100644 --- a/collects/scribblings/drracket/menus.scrbl +++ b/collects/scribblings/drracket/menus.scrbl @@ -294,7 +294,9 @@ limit on the amount of memory that a program running in DrRacket is allowed to consume.} @item{@defmenuitem{Clear Error Highlight} Removes the red -background that signals the source location of an error.} +background that signals the source location of an error. +Also removes the highlighting for uncovered (untested) +portions of the program.} @item{@defmenuitem{Create Executable...} Creates a separate launcher for running your program. See @secref["create-exe"] for more