racket/collects/tests/gracket
Asumu Takikawa 0e4f9fcd97 racket/gui: fixed by-position widget initialization
This was broken in the class100 port. The init arguments
previously handled by the class100*/kw macro need to be
explicitly passed down.

Also, an (init-rest) is needed at the leaves of the class
hierarchy to ensure that internal super init args don't
leak via error messages. (the class100 macro always
inserts these)

Added a test file so similar breakage is detectable in the
future.
2012-06-19 12:37:35 -04:00
..
.gitignore
auto.rktl
blits.rkt
button-steps.txt
cache-image8.mre
canvas-steps.txt
checkbox-steps.txt
choice-list-steps.txt
combo-steps.txt
dc.rktl Make some .rktl tests run with "racket". 2012-06-19 03:18:23 -04:00
draw-info.txt
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 Make some .rktl tests run with "racket". 2012-06-19 03:18:23 -04:00
flush-stress.rkt
frame-steps.txt
gauge-steps.txt
gui-main.rktl
gui.rktl
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 Convert all uses of mzlib/class100 to racket/class 2012-05-26 11:12:55 -04:00
load-handler.rkt more load[/use-compiled] handler fixes for submodules 2012-03-13 14:31:40 -06:00
loadtest.rktl
media3.mre
media6.mre
media8.mre
mediastream.example
mem.rkt Convert all uses of mzlib/class100 to racket/class 2012-05-26 11:12:55 -04:00
menu-steps.txt
nruter.xbm
paramz.rktl fix test to not write to stderr 2012-02-14 14:27:40 -07:00
png.rktl
prog6.mre
prog8.mre
radiobox-steps.txt
README
record-dc.rkt fix `record-dc%' test 2012-04-11 11:49:01 -06:00
showkey.rkt
sixlib.rktl
slider-steps.txt
test-editor-admin.rkt
testbox6.mre
testbox8.mre
testing.rktl The new error messages now pass the tests/language-test.rkt suite 2011-07-06 00:19:26 -04:00
text-scale.rktl
unflushed-circle.rkt
unsafe-draw.rkt racket/draw: add get-handle' to bitmap%'; add `make-handle-brush' 2012-03-27 18:14:26 -06:00
widget-init.rktl racket/gui: fixed by-position widget initialization 2012-06-19 12:37:35 -04:00
windowing.rktl racket/gui: fix `slider%' range checking 2012-04-02 15:25:47 -06:00
wxme-doc-random.rkt
wxme-random.rkt
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.

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