269 lines
11 KiB
Plaintext
269 lines
11 KiB
Plaintext
;; Being tested: SEdit
|
|
;;
|
|
;; Source: {ERIS}<LispCore>DOC>SEDIT>SEDIT.TEDIT
|
|
;;
|
|
;; Created By: Henry Cate III
|
|
;;
|
|
;; Creation Date: February 23, 1987
|
|
;;
|
|
;; Last Update:
|
|
;;
|
|
;; Filed As: {eris}<lispcore>test>SEdit>command-mutate.u
|
|
;;
|
|
;;
|
|
;;
|
|
|
|
|
|
(do-test "load the functions for the prompter for interactive tests"
|
|
(if (not (fboundp 'do-test-menu-setup))
|
|
(load "{ERINYES}<test>TOOLS>DO-TEST-MENU.dfasl"))
|
|
T)
|
|
|
|
|
|
(do-test-group "Skip-Next"
|
|
:before (progn
|
|
(setq window-list (do-test-menu-Setup "Skip-Next")))
|
|
|
|
:after (progn
|
|
(do-test-menu-Cleanup window-list))
|
|
|
|
|
|
(do-test "Skip-Next: no selection/no caret"
|
|
(let* ((user-result (do-test-menu-Message window-list 'high
|
|
" Testing Skip-Next
|
|
If there is no free Xerox Common Lisp exec, bring up a another one and type: \"(cl:in-package 'xcl-test)\"
|
|
In the exec type:
|
|
|
|
(setq tempx '(1 4.5 6/7 a cd efg \"hello\" \"BYE\" (bye) (\"hi\" (b) cd 4)))
|
|
(ed 'tempx)
|
|
|
|
Select Skip-Next from the pop up menu.
|
|
Does SEdit display the message \"Select point from which to start search for blanks.\"?"))
|
|
(good-value (equal '(1 4.5 6/7 a cd efg "hello" "BYE" (bye) ("hi" (b) cd 4)) tempx)))
|
|
(and user-result (if (eq t user-result) good-value T))
|
|
))
|
|
|
|
|
|
(do-test "Skip-Next: no selection/edit caret"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: no selection/edit caret
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg \"hello\" \"BYE\" (bye) (\"hi\" (b) cd 4))
|
|
Select DONE from the SEdit popup menu.
|
|
Want to place the edit caret right after the 1 without selecting it. Do this by pressing the left mouse button with the mouse cursor just to the right of the 1.
|
|
Type meta-N.
|
|
Does SEdit say \"No more blanks to fill in.\"?"))
|
|
|
|
|
|
(do-test "Skip-Next: no selection/structure caret"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: no selection/structure caret
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg \"hello\" \"BYE\" (bye) (\"hi\" (b) cd 4))
|
|
Place the edit caret after the litatom \"bye\" within the list and type: \" .\"
|
|
Want to place the structure caret right between \"a\" and \"cd\" without selecting either item. Do this by positioning the mouse cursor between the two items and press the middle button.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: select a litatom"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select a litatom
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg \"hello\" \"BYE\" (bye . -x-) \"hi\" (b) cd 4))
|
|
Place the structure caret after the litatom \"efg\" and type \"'\"
|
|
Select the first litatom \"cd\" as a structure, by pressing the left mouse button twice with the cursor over the litatom.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: select a string"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select a string
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the string \"hello\" as a structure, by pressing the left mouse button twice with the cursor over the string.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" in the first list (after the \"BYE . \")? "))
|
|
|
|
|
|
(do-test "Skip-Next: select a number"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select a number
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the number \"4.5\" as a structure, by pressing the left mouse button twice with the cursor over the number.
|
|
Type meta-N twice.
|
|
Does SEdit first place a box around the \"-x-\" with the quote, and then place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: select a list"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select a list
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 9.0 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the list \"(bye . -x-)\" as a structure, by pressing the left mouse button three times with the cursor over the \"y\".
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: select part of a litatom"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select part of a litatom
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the \"d\" in the first litatom \"cd\".
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: select part of a string"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select part of a string
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the \"h\" in the string \"hello\".
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: select part of a number"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: select part of a number
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the \"7\" in the number \"6/7\".
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: pending delete of a litatom"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: pending delete of litatom
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the litatom \"efg\" in pending delete mode by first pressing the left button of the mouse with the cursor on the \"e\" and then pressing the right button withe the cursor on the \"g\". This should create a box around the litatom \"efg\".
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: pending delete of a string"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: pending delete of a string
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the string \"hello\" in pending delete mode bye clicking on the \"h\", then pressing the right mouse button with the cursor to the right of the string.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: pending delete of a list"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: pending delete of a list
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the list \"(bye . -x-)\" in pending delete mode.
|
|
Type meta-N.
|
|
Does SEdit say \"No more blanks to fill in.\"?"))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of litatoms"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: try extended selection of litatoms
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the litatom \"a\" as a structure, and extend the selection to include the next two litatoms.
|
|
Type meta-N
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of strings"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: extended selection of strings
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Now select the string \"hello\" as a structure, and extend the selection to include the second string.
|
|
Type meta-N
|
|
Does SEdit place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of numbers"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: extended selection of numbers
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the number \"1\" as a structure, and extend the selection to include the next two numbers.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of lists"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: extended selection of lists
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the list \"(bye . -x-)\" as a structure, and extend the selection to include the next list.
|
|
Type meta-N.
|
|
Does SEdit say \"No more blanks to fill in.\"?"))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of litatoms and numbers"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: extended selection of litatoms and numbers
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the number \"1\" as a structure, and extend the selection to include the next five items.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of strings and lists"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: extended selection of strings and lists
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the string \"hello\" as a structure, and extend the selection to include the next three items.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" in the first list? "))
|
|
|
|
|
|
(do-test "Skip-Next: extended selection of several things"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: extended selection of several things
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the number \"1\" as a structure, and extend the selection to include the rest.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
(do-test "Skip-Next: selection of entire structure"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: selection of entire structure
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) gh 4))
|
|
Select the entire structure.
|
|
Type meta-N.
|
|
Does SEdit place a box around the \"-x-\" with the quote? "))
|
|
|
|
|
|
|
|
(do-test "Skip-Next: Pending delete of whole structure"
|
|
(do-test-menu-Message window-list 'low
|
|
" Testing: selection of entire structure
|
|
Assuming SEdit is editing the variable tempx which currently equals:
|
|
(1 4.5 6/7 a cd efg '-x- \"hello\" \"BYE\" (bye . -x-) (\"hi\" (b) cd 4))
|
|
Select the entire structure in pending delete mode.
|
|
Type meta-N.
|
|
Does SEdit say \"No more blanks to fill in.\"?"))
|
|
|
|
|
|
(do-test "Clean up"
|
|
(do-test-menu-message window-list 'high
|
|
"Close the SEdit window by selecting Done&Close from the window popup menu."))
|
|
|
|
) ; end of do-test-group
|
|
|
|
|
|
STOP
|