Fix tooltip test/contracts for TR contract mode
This commit is contained in:
parent
8bff995f41
commit
6c9172f50f
|
@ -19,7 +19,8 @@
|
||||||
[add-typeof-expr (syntax? tc-results/c . -> . any/c)]
|
[add-typeof-expr (syntax? tc-results/c . -> . any/c)]
|
||||||
[type-of (syntax? . -> . tc-results/c)]
|
[type-of (syntax? . -> . tc-results/c)]
|
||||||
[reset-type-table (-> any/c)]
|
[reset-type-table (-> any/c)]
|
||||||
[type-table->tooltips (-> (listof (vector/c any/c integer? integer? string?)))]
|
[type-table->tooltips
|
||||||
|
(-> (listof (vector/c any/c integer? integer? (or/c string? (-> string?)))))]
|
||||||
[test-position-add-true (syntax? . -> . any)]
|
[test-position-add-true (syntax? . -> . any)]
|
||||||
[test-position-add-false (syntax? . -> . any)]
|
[test-position-add-false (syntax? . -> . any)]
|
||||||
[test-position-takes-true-branch (syntax? . -> . boolean?)]
|
[test-position-takes-true-branch (syntax? . -> . boolean?)]
|
||||||
|
|
|
@ -51,7 +51,9 @@
|
||||||
[else
|
[else
|
||||||
(define stxs (vector-ref result 2))
|
(define stxs (vector-ref result 2))
|
||||||
(define tooltips
|
(define tooltips
|
||||||
(syntax-property (car stxs) 'mouse-over-tooltips))
|
(and (list? stxs)
|
||||||
|
(syntax? (car stxs))
|
||||||
|
(syntax-property (car stxs) 'mouse-over-tooltips)))
|
||||||
(if tooltips
|
(if tooltips
|
||||||
(and (pred tooltips)
|
(and (pred tooltips)
|
||||||
(unique-locations? tooltips))
|
(unique-locations? tooltips))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user