-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated Resyntax fixes #714
base: master
Are you sure you want to change the base?
Changes from 3 commits
3cc93d1
b3be073
2de1c08
042f6c4
ec35c55
e970f8b
7eef6c1
24b6900
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,8 @@ | |
"gui.rkt" | ||
"no-fw-test-util.rkt") | ||
|
||
(provide/contract | ||
[use-get/put-dialog (-> (-> any) path? void?)] | ||
[set-module-language! (->* () (boolean?) void?)]) | ||
(provide (contract-out [use-get/put-dialog (-> (-> any) path? void?)] | ||
[set-module-language! (->* () (boolean?) void?)])) | ||
|
||
(provide queue-callback/res | ||
fire-up-drracket-and-run-tests | ||
|
@@ -60,25 +59,25 @@ | |
;; filename is a string naming a file that should be typed into the dialog | ||
(define (use-get/put-dialog open-dialog filename) | ||
(not-on-eventspace-handler-thread 'use-get/put-dialog) | ||
(let ([drs (wait-for-drracket-frame)]) | ||
(with-handlers ([(lambda (x) #t) | ||
(lambda (x) | ||
(fw:preferences:set 'framework:file-dialogs 'std) | ||
(raise x))]) | ||
(fw:preferences:set 'framework:file-dialogs 'common) | ||
(open-dialog) | ||
(let ([dlg (wait-for-new-frame drs)]) | ||
(send (find-labelled-window "Filename:" #f (fw:test:get-active-top-level-window)) focus) | ||
(fw:test:keystroke #\a (list (case (system-type) | ||
[(windows) 'control] | ||
[(macosx macos) 'meta] | ||
[(unix) 'control] | ||
[else (error 'use-get/put-dialog "unknown platform: ~s\n" | ||
(system-type))]))) | ||
(for-each fw:test:keystroke (string->list (path->string filename))) | ||
(fw:test:button-push "OK") | ||
(wait-for-new-frame dlg)) | ||
(fw:preferences:set 'framework:file-dialogs 'std)))) | ||
(define drs (wait-for-drracket-frame)) | ||
(with-handlers ([(lambda (x) #t) (lambda (x) | ||
(fw:preferences:set 'framework:file-dialogs 'std) | ||
(raise x))]) | ||
(fw:preferences:set 'framework:file-dialogs 'common) | ||
(open-dialog) | ||
(let ([dlg (wait-for-new-frame drs)]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have been asking this a lot. I think one thing that would help is for the PR description to indicate if there's any limitation reached. If so, we wouldn't need to ask anymore if it's Resyntax's fault or not when some issues are not fixed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That sounds like a great idea. |
||
(send (find-labelled-window "Filename:" #f (fw:test:get-active-top-level-window)) focus) | ||
(fw:test:keystroke | ||
#\a | ||
(list (case (system-type) | ||
[(windows) 'control] | ||
[(macosx macos) 'meta] | ||
[(unix) 'control] | ||
[else (error 'use-get/put-dialog "unknown platform: ~s\n" (system-type))]))) | ||
(for-each fw:test:keystroke (string->list (path->string filename))) | ||
(fw:test:button-push "OK") | ||
(wait-for-new-frame dlg)) | ||
(fw:preferences:set 'framework:file-dialogs 'std))) | ||
|
||
(define (test-util-error fmt . args) | ||
(raise (make-exn (apply fmt args) (current-continuation-marks)))) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like another situation where we are missing some newlines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sorawee