gui/collects/tests/gracket
Matthew Flatt 60d67d2552 racket/gui: add `get-current-mouse-state'
original commit: 7b04571facdafe778bfb05f9c54d7da6d467b05d
2012-11-07 14:37:39 -07:00
..
.gitignore Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
auto.rktl Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
blits.rkt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
button-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
cache-image8.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
canvas-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
checkbox-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
choice-list-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
combo-steps.txt cocoa and gtk: fix combo% `on-popup' method 2010-11-05 15:54:56 -06:00
dc.rktl racket/draw: fix problems with monochrome PNGs 2012-10-18 10:01:20 -06:00
draw-info.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
draw-mem.rkt make draw-mem test more reliable 2012-01-09 16:08:28 -07:00
draw.rkt fix `record-dc%' problem with regions 2012-03-28 06:26:58 -06:00
editor.rktl lift the restriction that the port passed to open-input-text-editor 2012-11-02 10:24:34 -05:00
flush-stress.rkt manual tests for refresh behavior 2010-11-12 20:47:07 -07:00
frame-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
gauge-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
image-snip-unmarshalling.rkt A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
item.rkt racket/gui: add `get-current-mouse-state' 2012-11-07 14:37:39 -07:00
load-handler.rkt more load[/use-compiled] handler fixes for submodules 2012-03-13 14:31:40 -06:00
loadtest.rktl Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
media3.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
media6.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
media8.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
mediastream.example Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
mem.rkt Lots of bad TAB eliminations. 2012-11-07 11:22:20 -05:00
menu-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
nruter.xbm Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
paramz.rktl fix test to not write to stderr 2012-02-14 14:27:40 -07:00
png.rktl Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
prog6.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
prog8.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
radiobox-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
README Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
record-dc.rkt fix `record-dc%' test 2012-04-11 11:49:01 -06:00
showkey.rkt cocoa mouse event and cursor fixes 2010-11-05 15:54:22 -06:00
slider-steps.txt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
test-editor-admin.rkt fix support code for some tests 2012-07-10 11:42:42 -06:00
testbox6.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
testbox8.mre Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
testing.rktl The new error messages now pass the tests/language-test.rkt suite 2011-07-06 00:19:26 -04:00
unflushed-circle.rkt manual tests for refresh behavior 2010-11-12 20:47:07 -07:00
unsafe-draw.rkt racket/draw: add get-handle' to bitmap%'; add `make-handle-brush' 2012-03-27 18:14:26 -06:00
windowing.rktl racket/gui: fix access of scrollbar values for canvas without a scrollbar 2012-08-12 20:17:29 -06:00
wxme-load.rkt test case to finish repair for `racket/gui/init' load handler 2012-07-19 07:46:50 -05:00
wxme-random.rkt Rename "collects/tests/mred" -> ".../gracket". 2010-05-17 01:44:27 -04:00
wxme.rkt A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00

The "item.rkt" test (use `require') creates a frame to select among
several types of control-testing frames. Click the `Get Instructions'
button in the top-left for more information.

---------------------------------------------------------------------------

The "draw.rkt" test (use load/cd) tests drawing commands. Click the
"What Should I See?" button for further details.

---------------------------------------------------------------------------

The "mem.rktl" test is loaded at startup:
  gracket -r mem.rktl
Creates a lot of frames and instance of other objects, reporting
memory information along the way. At the end, before the last memory
dump, objects that are still allocated are displayed like this:
  (frame (1 . 5))
This means that the frame allocated by thread #1 at cycle 5
(counting down from some number) hasn't been garbage-collected.
If there's a few of these lines (around 10), that's ok.
A large number of lines (say, 50) indicates a GC problem.

---------------------------------------------------------------------------

[Out of date:]
The "random.rktl" test is a randomized test of the GRacket classes that tests
GRacket's stability. Load "random.rktl", and then run
  (init)
This attempts to create instances of classes using random
intialization arguments. (init) can be run any number of times. 
(2 is a good number) Then run
  (call-all-random) 
This calls every method of every class (skipping some "dangerous" ones
that modify the file system) with a random instance and with random
arguments.

To avoid testing much of the wxMedia toolbox, which is likely to be
platform-independent, (define skip-media? #t) before loading
"random.rktl".


==================================================
Old Stuff
==================================================

---------------------------------------------------------------------------

The "imred.rktl" test is used to check for memory leaks in a loop
invoking the gracket system. Call the `go' procedure with a list
of symbol flags:
  'force not included:
     Use the current eventspaces; expects mred:run-exit-callbacks
     to terminate everything properly
  'force included:
     Use a new eventspace; don't run mred:run-exit-callbacks and
     call wx:kill-eventspace instead.
  'console included:
     Open a GRacket console
  'thread included:
     Spawn a sleeping-and-looping thread during each invocation.
     Also tests semaphore-callback (because it has to)
  'eventspace included:
     Create a new sub-eventspace during each invocation with
     a wx:frame% shown

---------------------------------------------------------------------------

"startup" tests the startup flags of gracket.
run "run.rktl" from that directory.

---------------------------------------------------------------------------

"frame-edit.rktl" checks that various frames match with various
edits. Under construction.

---------------------------------------------------------------------------

"gui.rktl" tests:
 - save prompting (before closing unsaved files) and
 - autosaving 

evaluate `(load "gui.rktl")' in the console to run.

It also overwrites the file "tmp.rktd" in the testing directory.

---------------------------------------------------------------------------