..
original commit: 0e1bf3babada3872e47bed929a6013e007b774cd
This commit is contained in:
parent
d3379a8e38
commit
7b7e9f4a17
|
@ -12,10 +12,12 @@
|
||||||
"framework-unit.ss"
|
"framework-unit.ss"
|
||||||
"framework-sig.ss"
|
"framework-sig.ss"
|
||||||
|
|
||||||
"macro.ss")
|
"macro.ss"
|
||||||
|
"specs.ss")
|
||||||
|
|
||||||
(provide-signature-elements framework^)
|
(provide-signature-elements framework^)
|
||||||
(provide (all-from "macro.ss"))
|
(provide (all-from "macro.ss"))
|
||||||
|
(provide (all-from "specs.ss"))
|
||||||
|
|
||||||
(define-values/invoke-unit/sig
|
(define-values/invoke-unit/sig
|
||||||
frameworkc^
|
frameworkc^
|
||||||
|
|
|
@ -34,6 +34,11 @@ test as last time, or `all' to run all of the tests.
|
||||||
| This tests that preferences are saved and restored correctly, both
|
| This tests that preferences are saved and restored correctly, both
|
||||||
| immediately and across reboots of mred.
|
| immediately and across reboots of mred.
|
||||||
|
|
||||||
|
|
||||||
|
- specs |# spec-test.ss #|
|
||||||
|
|
||||||
|
| this tests that the specs are compiled properly.
|
||||||
|
|
||||||
- individual object tests:
|
- individual object tests:
|
||||||
|
|
||||||
| These tests are simple object creation and basic operations.
|
| These tests are simple object creation and basic operations.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(module load mzscheme
|
(module load mzscheme
|
||||||
(require "test-suite-utils.ss")
|
(require "test-suite-utils.ss")
|
||||||
|
|
||||||
(define old-load-framework-automatically? (load-framework-automatically))
|
(load-framework-automatically #f)
|
||||||
|
|
||||||
(define (test/load file exp)
|
(define (test/load file exp)
|
||||||
(test
|
(test
|
||||||
|
@ -23,11 +23,8 @@
|
||||||
(eval ',exp)
|
(eval ',exp)
|
||||||
(void))))))
|
(void))))))
|
||||||
|
|
||||||
(load-framework-automatically #f)
|
(test/load "specs.ss" '(contract (lambda (x) #t) 1 'pos 'neg))
|
||||||
|
|
||||||
(test/load "prefs-file-unit.ss" 'framework:prefs-file@)
|
|
||||||
(test/load "prefs-file.ss" 'prefs-file:get-preferences-filename)
|
|
||||||
|
|
||||||
(test/load "gui-utils-unit.ss" 'framework:gui-utils@)
|
(test/load "gui-utils-unit.ss" 'framework:gui-utils@)
|
||||||
(test/load "gui-utils.ss" 'gui-utils:next-untitled-name)
|
(test/load "gui-utils.ss" 'gui-utils:next-untitled-name)
|
||||||
|
|
||||||
|
@ -36,10 +33,9 @@
|
||||||
|
|
||||||
(test/load "macro.ss" '(mixin () () ()))
|
(test/load "macro.ss" '(mixin () () ()))
|
||||||
|
|
||||||
(test/load "framework-unit.ss" '(list framework@ framework-no-prefs@ frameworkc@))
|
(test/load "framework-unit.ss" '(list framework@ frameworkc@))
|
||||||
(test/load "framework.ss" '(list prefs-file:get-preferences-filename
|
(test/load "framework.ss" '(list test:button-push
|
||||||
test:button-push
|
|
||||||
gui-utils:next-untitled-name
|
gui-utils:next-untitled-name
|
||||||
frame:basic-mixin))
|
frame:basic-mixin
|
||||||
|
(mixin () () ())
|
||||||
(load-framework-automatically old-load-framework-automatically?))
|
(contract (lambda (x) #t) 1 'pos 'neg))))
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
(when (member x all-files)
|
(when (member x all-files)
|
||||||
(shutdown-mred)
|
(shutdown-mred)
|
||||||
|
(load-framework-automatically #t)
|
||||||
(let/ec k
|
(let/ec k
|
||||||
(dynamic-wind
|
(dynamic-wind
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user