Add a complete list of implementable widgets
[pipeglade.git] / pipegladetest.sh
blob4d2b628ce4b886805307ecbd5632d869801426dc
1 #! /usr/bin/env bash
3 # Pipeglade tests; they should be invoked in the build directory.
5 # Usage: ./pipegladetset.sh
6 # Usage: ./pipegladetset.sh interactive
7 # Usage: ./pipegladetset.sh automatic
9 # Failure of a test can cause failure of one or more subsequent tests.
11 INTERACTIVE=true
12 AUTOMATIC=true
13 if test ${1-X} == interactive; then unset -v AUTOMATIC ; fi
14 if test ${1-X} == automatic; then unset -v INTERACTIVE ; fi
16 export LC_ALL=C
17 export NO_AT_BRIDGE=1
18 FIN=to-g.fifo
19 FOUT=from-g.fifo
20 FERR=err.fifo
21 LOG=test.log
22 ERR_FILE=err.txt
23 BAD_FIFO=bad_fifo
24 PID_FILE=pid
25 OUT_FILE=out.txt
26 DIR=test_dir
27 EPS_FILE=test.eps
28 EPSF_FILE=test.epsf
29 PDF_FILE=test.pdf
30 PS_FILE=test.ps
31 SVG_FILE=test.svg
32 FILE1=saved1.txt
33 FILE2=saved2.txt
34 FILE3=saved3.txt
35 FILE4=saved4.txt
36 FILE5=saved5.txt
37 FILE6=saved6.txt
38 BIG_INPUT=big.txt
39 BIG_INPUT2=big2.txt
40 BIG_INPUT_ERR=err.txt
41 WEIRD_PATHS=$(awk 'BEGIN{ for (i=0x01; i<= 0xff; i++) if (i != 0x2a && i != 0x2f && i != 0x3f && i != 0x5c) printf "'$DIR'/(%c) ", i }')
42 BIG_STRING=$(for i in {1..100}; do echo -n "abcdefghijklmnopqrstuvwxyz($i)ABCDEFGHIJKLMNOPQRSTUVWXYZ0{${RANDOM}}123456789"; done)
43 BIG_NUM=$(for i in {1..100}; do echo -n "$RANDOM"; done)
44 rm -rf $FIN $FOUT $FERR $LOG $ERR_FILE $BAD_FIFO $PID_FILE $OUT_FILE \
45 $EPS_FILE $EPSF_FILE $PDF_FILE $PS_FILE $SVG_FILE \
46 $FILE1 $FILE2 $FILE3 $FILE4 $FILE5 $FILE6 $BIG_INPUT $BIG_INPUT2 $BIG_INPUT_ERR $DIR
48 if stat -f "%0p" 2>/dev/null; then
49 STAT_CMD='stat -f "%0p"'
50 else
51 # probably GNU stat
52 STAT_CMD='stat -c "%a"'
55 # colored messages: bright green
56 OK=$'\E[32;1mOK\E[0m'
57 # bright red
58 FAIL=$'\E[31;1mFAIL\E[0m'
59 EXPECTED=$'\E[31;1mEXPECTED\E[0m'
60 # yellow
61 CALL=$'\E[33mCALL\E[0m'
62 SEND=$'\E[33mSEND\E[0m'
64 TESTS=0
65 FAILS=0
66 OKS=0
68 count_fail() {
69 (( TESTS+=1 ))
70 (( FAILS+=1 ))
73 count_ok() {
74 (( TESTS+=1 ))
75 (( OKS+=1 ))
78 check_rm() {
79 i=0
80 while test -e $1 && (( i<50 )); do
81 sleep .1
82 (( i+=1 ))
83 done
84 if test -e $1; then
85 count_fail
86 echo " $FAIL $1 should be deleted"
87 rm -f $1
88 else
89 count_ok
90 echo " $OK $1 deleted"
94 check_cmd() {
95 i=0
96 while ! eval "$1" && (( i<50 )); do
97 sleep .1
98 (( i+=1 ))
99 done
100 if eval "$1"; then
101 count_ok
102 echo " $OK $1"
103 else
104 count_fail
105 echo " $FAIL $1"
110 echo "
111 # BATCH ONE
113 # Situations where pipeglade should exit immediately. These tests
114 # should run automatically
115 ######################################################################
118 # check_call command expected_status expected_stderr expected_stdout
119 check_call() {
120 r=$2
121 e=$3
122 o=$4
123 output=$($1 2>tmperr.txt)
124 retval=$?
125 error=$(<tmperr.txt)
126 rm tmperr.txt
127 echo "$CALL $1"
128 if test "$output" = "" -a "$o" = "" || (echo "$output" | grep -Fqe "$o"); then
129 count_ok
130 echo " $OK STDOUT $output"
131 else
132 count_fail
133 echo " $FAIL STDOUT $output"
134 echo " $EXPECTED $o"
136 if test "$error" = "" -a "$e" = "" || test "$retval" -eq "$r" && (echo "$error" | grep -Fqe "$e"); then
137 count_ok
138 echo " $OK EXIT/STDERR $retval $error"
139 else
140 count_fail
141 echo " $FAIL EXIT/STDERR $retval $error"
142 echo " $EXPECTED $r $e"
147 if test $AUTOMATIC; then
149 check_call "./pipeglade -u nonexistent.ui" 1 \
150 "nonexistent.ui" ""
151 check_call "./pipeglade -u bad_window.ui" 1 \
152 "no toplevel window with id 'main'" ""
153 check_call "./pipeglade -u www-template/404.html" 1 \
154 "html" ""
155 check_call "./pipeglade -u README" 1 \
156 "Document must begin with an element" ""
157 check_call "./pipeglade -e x" 1 \
158 "x is not a valid XEmbed socket id" ""
159 check_call "./pipeglade -ex" 1 \
160 "x is not a valid XEmbed socket id" ""
161 check_call "./pipeglade -e -77" 1 \
162 "-77 is not a valid XEmbed socket id" ""
163 check_call "./pipeglade -e 77x" 1 \
164 "77x is not a valid XEmbed socket id" ""
165 check_call "./pipeglade -e +77" 1 \
166 "+77 is not a valid XEmbed socket id" ""
167 check_call "./pipeglade -e 999999999999999999999999999999" 1 \
168 "999999999999999999999999999999 is not a valid XEmbed socket id" ""
169 check_call "./pipeglade -e 99999999999999999" 1 \
170 "unable to embed into XEmbed socket 99999999999999999" ""
171 touch $BAD_FIFO
172 check_call "./pipeglade -i $BAD_FIFO" 1 \
173 "using pre-existing fifo" ""
174 check_call "./pipeglade -o $BAD_FIFO" 1 \
175 "using pre-existing fifo" ""
176 rm $BAD_FIFO
177 check_call "./pipeglade -b" 1 \
178 "parameter -b requires both -i and -o"
179 check_call "./pipeglade -b -i $FIN" 1 \
180 "parameter -b requires both -i and -o"
181 check_call "./pipeglade -b -i $FOUT" 1 \
182 "parameter -b requires both -i and -o"
183 rm $FIN $FOUT
184 check_call "./pipeglade -h" 0 \
185 "" "usage: pipeglade [[-i in-fifo] [-o out-fifo] [-b] [-u glade-file.ui] [-e xid]
186 [-l log-file] [-O err-file] [--display X-server]] | [-h|-G|-V]"
187 check_call "./pipeglade -G" 0 \
188 "" "GTK+ v"
189 check_call "./pipeglade -G" 0 \
190 "" "cairo v"
191 check_call "./pipeglade -V" 0 \
192 "" "."
193 check_call "./pipeglade -X" 1 \
194 "option" ""
195 check_call "./pipeglade -e" 1 \
196 "argument" ""
197 check_call "./pipeglade -u" 1 \
198 "argument" ""
199 check_call "./pipeglade -i" 1 \
200 "argument" ""
201 check_call "./pipeglade -o" 1 \
202 "argument" ""
203 mkdir -p $DIR
204 check_call "./pipeglade -O" 1 \
205 "argument" ""
206 check_call "./pipeglade -O $DIR" 1 \
207 "" "redirecting stderr to"
208 check_call "./pipeglade -l $DIR" 1 \
209 "opening log file" ""
210 check_call "./pipeglade -l" 1 \
211 "argument" ""
212 # assuming we can't adjust permissions of /dev/null:
213 check_call "./pipeglade -O /dev/null" 1 \
214 "" "setting permissions of /dev/null:"
215 check_call "./pipeglade -l /dev/null" 1 \
216 "setting permissions of /dev/null:" ""
217 check_call "./pipeglade yyy" 1 \
218 "illegal parameter 'yyy'" ""
219 check_call "./pipeglade --display nnn" 1 \
220 "nnn"
221 check_rm $FIN
222 check_rm $FOUT
227 #exit
229 echo "
230 # BATCH TWO
232 # Error handling tests---bogus actions leading to appropriate error
233 # messages. Most of these tests should run automatically.
234 ######################################################################
237 mkfifo $FERR
239 # check_error command expected_stderr
240 check_error() {
241 echo "$SEND ${1:0:300}"
242 echo -e "$1" >$FIN
243 while read r <$FERR; do
244 # ignore irrelevant GTK warnings
245 if test "$r" != "" && ! grep -qe "WARNING"<<< "$r"; then
246 break;
248 done
249 if grep -qFe "${2:0:300}" <<< "${r:0:300}"; then
250 count_ok
251 echo " $OK ${r:0:300}"
252 else
253 count_fail
254 echo " $FAIL ${r:0:300}"
255 echo " $EXPECTED ${2:0:300}"
259 read r 2< $FERR &
260 ./pipeglade -i $FIN 2> $FERR &
261 # wait for $FIN to appear
262 while test ! \( -e $FIN \); do :; done
264 if test $AUTOMATIC; then
265 # Non-existent id
266 check_error "nnn" \
267 "ignoring command \"nnn\""
268 check_error "BIG_STRING" \
269 "ignoring command \"BIG_STRING\""
270 check_error "nnn:set_text FFFF" \
271 "ignoring command \"nnn:set_text FFFF\""
272 check_error "nnn:set_text $BIG_STRING" \
273 "ignoring command \"nnn:set_text $BIG_STRING\""
274 check_error "nnn:set_tooltip_text FFFF" \
275 "ignoring command \"nnn:set_tooltip_text FFFF\""
276 check_error "nnn:set_tooltip_text $BIG_STRING" \
277 "ignoring command \"nnn:set_tooltip_text $BIG_STRING\""
278 check_error "nnn:set_sensitive 0" \
279 "ignoring command \"nnn:set_sensitive 0\""
280 check_error "nnn:set_sensitive 1" \
281 "ignoring command \"nnn:set_sensitive 1\""
282 check_error "nnn:set_visible 0" \
283 "ignoring command \"nnn:set_visible 0\""
284 check_error "nnn:set_visible 1" \
285 "ignoring command \"nnn:set_visible 1\""
286 check_error "nnn:grab_focus" \
287 "ignoring command \"nnn:grab_focus\""
288 check_error "nnn:set_size_request 100 100" \
289 "ignoring command \"nnn:set_size_request 100 100\""
290 check_error "nnn:set_size_request $BIG_NUM $BIG_NUM" \
291 "ignoring command \"nnn:set_size_request $BIG_NUM $BIG_NUM\""
292 check_error "nnn:style font:Bold 11" \
293 "ignoring command \"nnn:style font:Bold 11\""
294 check_error "nnn:force" \
295 "ignoring command \"nnn:force\""
296 check_error "nnn:block 1" \
297 "ignoring command \"nnn:block 1\""
298 # Illegal id
299 check_error "+:main_quit" \
300 "ignoring command \"+:main_quit"
301 check_error "=:main_quit" \
302 "ignoring command \"=:main_quit"
303 check_error "|:main_quit" \
304 "ignoring command \"|:main_quit"
305 # Wrong number or kind of arguments for generic actions
306 check_error "button1:set_sensitive" \
307 "ignoring GtkButton command \"button1:set_sensitive\""
308 check_error "button1:set_sensitive 2" \
309 "ignoring GtkButton command \"button1:set_sensitive 2\""
310 check_error "button1:set_sensitive $BIG_NUM" \
311 "ignoring GtkButton command \"button1:set_sensitive $BIG_NUM\""
312 check_error "button1:set_sensitive nnn" \
313 "ignoring GtkButton command \"button1:set_sensitive nnn\""
314 check_error "button1:set_sensitive 0 1" \
315 "ignoring GtkButton command \"button1:set_sensitive 0 1\""
316 check_error "button1:set_visible" \
317 "ignoring GtkButton command \"button1:set_visible\""
318 check_error "button1:set_visible 2" \
319 "ignoring GtkButton command \"button1:set_visible 2\""
320 check_error "button1:set_visible $BIG_NUM" \
321 "ignoring GtkButton command \"button1:set_visible $BIG_NUM\""
322 check_error "button1:set_visible nnn" \
323 "ignoring GtkButton command \"button1:set_visible nnn\""
324 check_error "button1:set_visible 0 1" \
325 "ignoring GtkButton command \"button1:set_visible 0 1\""
326 check_error "button1:grab_focus 2" \
327 "ignoring GtkButton command \"button1:grab_focus 2\""
328 check_error "button1:set_size_request 100" \
329 "ignoring GtkButton command \"button1:set_size_request 100\""
330 check_error "button1:set_size_request 100 100 100" \
331 "ignoring GtkButton command \"button1:set_size_request 100 100 100\""
332 check_error "button1:force 2" \
333 "ignoring GtkButton command \"button1:force 2\""
334 check_error "_:main_quit 2" \
335 "ignoring command \"_:main_quit 2\""
336 check_error "button1:block 2" \
337 "ignoring GtkButton command \"button1:block 2\""
338 check_error "button1:block 0 0" \
339 "ignoring GtkButton command \"button1:block 0 0\""
340 check_error "button1:snapshot" \
341 "ignoring GtkButton command \"button1:snapshot\""
342 check_error "button1:snapshot " \
343 "ignoring GtkButton command \"button1:snapshot \""
344 # Widget that shouldn't fire callbacks
345 check_error "label1:force" \
346 "ignoring GtkLabel command \"label1:force\""
347 # Widget that can't grab focus
348 check_error "label1:grab_focus" \
349 "ignoring GtkLabel command \"label1:grab_focus\""
350 # load file
351 check_error "_:load" \
352 "ignoring command \"_:load\""
353 check_error "_:load " \
354 "ignoring command \"_:load \""
355 check_error "_:load nonexistent.txt" \
356 "ignoring command \"_:load nonexistent.txt\""
357 for i in $WEIRD_PATHS; do
358 check_error "_:load nonexistent/${i}QqQ" \
359 "ignoring command \"_:load nonexistent/${i}QqQ\""
360 done
361 # _:load junk
362 mkdir -p $DIR
363 cat >$DIR/$FILE1 <<< "blah"
364 check_error "_:load $DIR/$FILE1" \
365 "ignoring command \"blah\""
366 for i in $WEIRD_PATHS; do
367 cat >$i <<< "blah"
368 check_error "_:load $i" \
369 "ignoring command \"blah\""
370 done
371 # recursive :load
372 cat >$DIR/$FILE1 <<< "_:load $DIR/$FILE1"
373 check_error "_:load $DIR/$FILE1" \
374 "ignoring command \"_:load $DIR/$FILE1\""
375 for i in $WEIRD_PATHS; do
376 cat >$i <<< "_:load $i"
377 check_error "_:load $i" \
378 "ignoring command \"_:load $i\""
379 done
380 cat >$DIR/$FILE1 <<< "_:load $DIR/$FILE2"
381 cat >$DIR/$FILE2 <<< "_:load $DIR/$FILE1"
382 check_error "_:load $DIR/$FILE1" \
383 "ignoring command \"_:load $DIR/$FILE1\""
384 cat >$DIR/$FILE1 <<< "_:load $DIR/$FILE2"
385 cat >$DIR/$FILE2 <<< "_:blah"
386 check_error "_:load $DIR/$FILE1" \
387 "ignoring command \"_:blah\""
388 rm -rf $DIR
389 # GtkWindow
390 check_error "main:nnn" \
391 "ignoring GtkWindow command \"main:nnn\""
392 check_error "main:move" \
393 "ignoring GtkWindow command \"main:move\""
394 check_error "main:move " \
395 "ignoring GtkWindow command \"main:move \""
396 check_error "main:move 700" \
397 "ignoring GtkWindow command \"main:move 700\""
398 check_error "main:move 700 nnn" \
399 "ignoring GtkWindow command \"main:move 700 nnn\""
400 check_error "main:move $BIG_NUM $BIG_STRING" \
401 "ignoring GtkWindow command \"main:move $BIG_NUM $BIG_STRING\""
402 check_error "main:move 700 700 700" \
403 "ignoring GtkWindow command \"main:move 700 700 700\""
404 check_error "main:resize 700" \
405 "ignoring GtkWindow command \"main:resize 700\""
406 check_error "main:resize 700 nnn" \
407 "ignoring GtkWindow command \"main:resize 700 nnn\""
408 check_error "main:resize 700 700 700" \
409 "ignoring GtkWindow command \"main:resize 700 700 700\""
410 check_error "main:fullscreen 1" \
411 "ignoring GtkWindow command \"main:fullscreen 1\""
412 check_error "main:unfullscreen 1" \
413 "ignoring GtkWindow command \"main:unfullscreen 1\""
414 # GtkLabel
415 check_error "label1:nnn" \
416 "ignoring GtkLabel command \"label1:nnn\""
417 # GtkImage
418 check_error "image1:nnn" \
419 "ignoring GtkImage command \"image1:nnn\""
420 # GtkNotebook
421 check_error "notebook1:nnn" \
422 "ignoring GtkNotebook command \"notebook1:nnn\""
423 check_error "notebook1:set_current_page" \
424 "ignoring GtkNotebook command \"notebook1:set_current_page\""
425 check_error "notebook1:set_current_page " \
426 "ignoring GtkNotebook command \"notebook1:set_current_page \""
427 check_error "notebook1:set_current_page nnn" \
428 "ignoring GtkNotebook command \"notebook1:set_current_page nnn\""
429 check_error "notebook1:set_current_page -1" \
430 "ignoring GtkNotebook command \"notebook1:set_current_page -1\""
431 check_error "notebook1:set_current_page $BIG_NUM" \
432 "ignoring GtkNotebook command \"notebook1:set_current_page $BIG_NUM\""
433 check_error "notebook1:set_current_page 1 1" \
434 "ignoring GtkNotebook command \"notebook1:set_current_page 1 1\""
435 # GtkExpander
436 check_error "expander1:nnn" \
437 "ignoring GtkExpander command \"expander1:nnn\""
438 check_error "expander1:set_expanded" \
439 "ignoring GtkExpander command \"expander1:set_expanded\""
440 check_error "expander1:set_expanded 3" \
441 "ignoring GtkExpander command \"expander1:set_expanded 3\""
442 check_error "expander1:set_expanded $BIG_NUM" \
443 "ignoring GtkExpander command \"expander1:set_expanded $BIG_NUM\""
444 check_error "expander1:set_expanded 0 1" \
445 "ignoring GtkExpander command \"expander1:set_expanded 0 1\""
446 # GtkTextView
447 check_error "textview1:nnn" \
448 "ignoring GtkTextView command \"textview1:nnn\""
449 check_error "textview1:save" \
450 "ignoring GtkTextView command \"textview1:save\""
451 check_error "textview1:delete nnn" \
452 "ignoring GtkTextView command \"textview1:delete nnn\""
453 check_error "textview1:place_cursor" \
454 "ignoring GtkTextView command \"textview1:place_cursor\""
455 check_error "textview1:place_cursor " \
456 "ignoring GtkTextView command \"textview1:place_cursor \""
457 check_error "textview1:place_cursor nnn" \
458 "ignoring GtkTextView command \"textview1:place_cursor nnn\""
459 check_error "textview1:place_cursor 1 1" \
460 "ignoring GtkTextView command \"textview1:place_cursor 1 1\""
461 check_error "textview1:place_cursor end 1" \
462 "ignoring GtkTextView command \"textview1:place_cursor end 1\""
463 check_error "textview1:place_cursor_at_line" \
464 "ignoring GtkTextView command \"textview1:place_cursor_at_line\""
465 check_error "textview1:place_cursor_at_line " \
466 "ignoring GtkTextView command \"textview1:place_cursor_at_line \""
467 check_error "textview1:place_cursor_at_line nnn" \
468 "ignoring GtkTextView command \"textview1:place_cursor_at_line nnn\""
469 check_error "textview1:place_cursor_at_line 1 1" \
470 "ignoring GtkTextView command \"textview1:place_cursor_at_line 1 1\""
471 check_error "textview1:scroll_to_cursor nnn" \
472 "ignoring GtkTextView command \"textview1:scroll_to_cursor nnn\""
473 mkdir $DIR; chmod a-w $DIR
474 check_error "textview1:save $DIR/$FILE1" \
475 "ignoring GtkTextView command \"textview1:save $DIR/$FILE1\""
476 check_error "textview1:save nonexistent/$FILE1" \
477 "ignoring GtkTextView command \"textview1:save nonexistent/$FILE1\""
478 for i in $WEIRD_PATHS; do
479 check_error "textview1:save nonexistent/$i" \
480 "ignoring GtkTextView command \"textview1:save nonexistent/$i\""
481 done
483 rm -rf $DIR
484 # GtkButton
485 check_error "button1:nnn" \
486 "ignoring GtkButton command \"button1:nnn\""
487 # GtkSwitch
488 check_error "switch1:nnn" \
489 "ignoring GtkSwitch command \"switch1:nnn\""
490 check_error "switch1:set_active" \
491 "ignoring GtkSwitch command \"switch1:set_active\""
492 check_error "switch1:set_active " \
493 "ignoring GtkSwitch command \"switch1:set_active \""
494 check_error "switch1:set_active 2" \
495 "ignoring GtkSwitch command \"switch1:set_active 2\""
496 check_error "switch1:set_active $BIG_NUM" \
497 "ignoring GtkSwitch command \"switch1:set_active $BIG_NUM\""
498 check_error "switch1:set_active 0 1" \
499 "ignoring GtkSwitch command \"switch1:set_active 0 1\""
500 # GtkToggleButton
501 check_error "togglebutton1:nnn" \
502 "ignoring GtkToggleButton command \"togglebutton1:nnn\""
503 check_error "togglebutton1:set_active" \
504 "ignoring GtkToggleButton command \"togglebutton1:set_active\""
505 check_error "togglebutton1:set_active " \
506 "ignoring GtkToggleButton command \"togglebutton1:set_active \""
507 check_error "togglebutton1:set_active 2" \
508 "ignoring GtkToggleButton command \"togglebutton1:set_active 2\""
509 check_error "togglebutton1:set_active $BIG_NUM" \
510 "ignoring GtkToggleButton command \"togglebutton1:set_active $BIG_NUM\""
511 check_error "togglebutton1:set_active 1 0" \
512 "ignoring GtkToggleButton command \"togglebutton1:set_active 1 0\""
513 # GtkCheckButton
514 check_error "checkbutton1:nnn" \
515 "ignoring GtkCheckButton command \"checkbutton1:nnn\""
516 check_error "checkbutton1:set_active" \
517 "ignoring GtkCheckButton command \"checkbutton1:set_active\""
518 check_error "checkbutton1:set_active " \
519 "ignoring GtkCheckButton command \"checkbutton1:set_active \""
520 check_error "checkbutton1:set_active 2" \
521 "ignoring GtkCheckButton command \"checkbutton1:set_active 2\""
522 check_error "checkbutton1:set_active $BIG_NUM" \
523 "ignoring GtkCheckButton command \"checkbutton1:set_active $BIG_NUM\""
524 check_error "checkbutton1:set_active 1 1" \
525 "ignoring GtkCheckButton command \"checkbutton1:set_active 1 1\""
526 # GtkRadioButton
527 check_error "radiobutton1:nnn" \
528 "ignoring GtkRadioButton command \"radiobutton1:nnn\""
529 check_error "radiobutton1:set_active" \
530 "ignoring GtkRadioButton command \"radiobutton1:set_active\""
531 check_error "radiobutton1:set_active " \
532 "ignoring GtkRadioButton command \"radiobutton1:set_active \""
533 check_error "radiobutton1:set_active 2" \
534 "ignoring GtkRadioButton command \"radiobutton1:set_active 2\""
535 check_error "radiobutton1:set_active $BIG_NUM" \
536 "ignoring GtkRadioButton command \"radiobutton1:set_active $BIG_NUM\""
537 check_error "radiobutton1:set_active nnn" \
538 "ignoring GtkRadioButton command \"radiobutton1:set_active nnn\""
539 check_error "radiobutton1:set_active 0 1" \
540 "ignoring GtkRadioButton command \"radiobutton1:set_active 0 1\""
541 # GtkSpinButton
542 check_error "spinbutton1:nnn" \
543 "ignoring GtkSpinButton command \"spinbutton1:nnn\""
544 check_error "spinbutton1:set_text" \
545 "ignoring GtkSpinButton command \"spinbutton1:set_text\""
546 check_error "spinbutton1:set_text " \
547 "ignoring GtkSpinButton command \"spinbutton1:set_text \""
548 check_error "spinbutton1:set_text nnn" \
549 "ignoring GtkSpinButton command \"spinbutton1:set_text nnn\""
550 check_error "spinbutton1:set_text $BIG_STRING" \
551 "ignoring GtkSpinButton command \"spinbutton1:set_text $BIG_STRING\""
552 check_error "spinbutton1:set_text 10 10" \
553 "ignoring GtkSpinButton command \"spinbutton1:set_text 10 10\""
554 check_error "spinbutton1:set_range" \
555 "ignoring GtkSpinButton command \"spinbutton1:set_range\""
556 check_error "spinbutton1:set_range " \
557 "ignoring GtkSpinButton command \"spinbutton1:set_range \""
558 check_error "spinbutton1:set_range 10 nnn" \
559 "ignoring GtkSpinButton command \"spinbutton1:set_range 10 nnn\""
560 check_error "spinbutton1:set_range 10 20 10" \
561 "ignoring GtkSpinButton command \"spinbutton1:set_range 10 20 10\""
562 check_error "spinbutton1:set_increments" \
563 "ignoring GtkSpinButton command \"spinbutton1:set_increments\""
564 check_error "spinbutton1:set_increments " \
565 "ignoring GtkSpinButton command \"spinbutton1:set_increments \""
566 check_error "spinbutton1:set_increments 10 nnn" \
567 "ignoring GtkSpinButton command \"spinbutton1:set_increments 10 nnn\""
568 check_error "spinbutton1:set_increments 10 20 10" \
569 "ignoring GtkSpinButton command \"spinbutton1:set_increments 10 20 10\""
570 # GtkDialog
571 check_error "dialog1:resize 100" \
572 "ignoring GtkDialog command \"dialog1:resize 100\""
573 check_error "dialog1:resize 100 100 100" \
574 "ignoring GtkDialog command \"dialog1:resize 100 100 100\""
575 check_error "dialog1:move" \
576 "ignoring GtkDialog command \"dialog1:move\""
577 check_error "dialog1:move " \
578 "ignoring GtkDialog command \"dialog1:move \""
579 check_error "dialog1:move 100" \
580 "ignoring GtkDialog command \"dialog1:move 100\""
581 check_error "dialog1:move 100 100 100" \
582 "ignoring GtkDialog command \"dialog1:move 100 100 100\""
583 check_error "dialog1:fullscreen 1" \
584 "ignoring GtkDialog command \"dialog1:fullscreen 1\""
585 check_error "dialog1:unfullscreen 1" \
586 "ignoring GtkDialog command \"dialog1:unfullscreen 1\""
587 # GtkFileChooserButton
588 check_error "filechooserbutton1:nnn" \
589 "ignoring GtkFileChooserButton command \"filechooserbutton1:nnn\""
590 # GtkFilechooserDialog
591 check_error "open_dialog:nnn" \
592 "ignoring GtkFileChooserDialog command \"open_dialog:nnn\""
593 check_error "open_dialog:resize 100" \
594 "ignoring GtkFileChooserDialog command \"open_dialog:resize 100\""
595 check_error "open_dialog:resize 100 100 100" \
596 "ignoring GtkFileChooserDialog command \"open_dialog:resize 100 100 100\""
597 check_error "open_dialog:move" \
598 "ignoring GtkFileChooserDialog command \"open_dialog:move\""
599 check_error "open_dialog:move " \
600 "ignoring GtkFileChooserDialog command \"open_dialog:move \""
601 check_error "open_dialog:move 100" \
602 "ignoring GtkFileChooserDialog command \"open_dialog:move 100\""
603 check_error "open_dialog:move 100 100 100" \
604 "ignoring GtkFileChooserDialog command \"open_dialog:move 100 100 100\""
605 check_error "open_dialog:fullscreen 1" \
606 "ignoring GtkFileChooserDialog command \"open_dialog:fullscreen 1\""
607 check_error "open_dialog:unfullscreen 1" \
608 "ignoring GtkFileChooserDialog command \"open_dialog:unfullscreen 1\""
609 # GtkFontButton
610 check_error "fontbutton1:nnn" \
611 "ignoring GtkFontButton command \"fontbutton1:nnn\""
612 # GtkColorButton
613 check_error "colorbutton1:nnn" \
614 "ignoring GtkColorButton command \"colorbutton1:nnn\""
615 # GtkPrintUnixDialog
616 check_error "printdialog:nnn" \
617 "ignoring GtkPrintUnixDialog command \"printdialog:nnn\""
619 if test $INTERACTIVE; then
620 check_error "statusbar1:push Click \"Print\"\n printdialog:print nonexistent.ps" \
621 "ignoring GtkPrintUnixDialog command \" printdialog:print nonexistent.ps\""
623 if test $AUTOMATIC; then
624 # GtkScale
625 check_error "scale1:nnn" \
626 "ignoring GtkScale command \"scale1:nnn\""
627 check_error "scale1:set_value" \
628 "ignoring GtkScale command \"scale1:set_value\""
629 check_error "scale1:set_value " \
630 "ignoring GtkScale command \"scale1:set_value \""
631 check_error "scale1:set_value nnn" \
632 "ignoring GtkScale command \"scale1:set_value nnn\""
633 check_error "scale1:set_value $BIG_STRING" \
634 "ignoring GtkScale command \"scale1:set_value $BIG_STRING\""
635 check_error "scale1:set_value 10 10" \
636 "ignoring GtkScale command \"scale1:set_value 10 10\""
637 check_error "scale1:set_fill_level nnn" \
638 "ignoring GtkScale command \"scale1:set_fill_level nnn\""
639 check_error "scale1:set_fill_level $BIG_STRING" \
640 "ignoring GtkScale command \"scale1:set_fill_level $BIG_STRING\""
641 check_error "scale1:set_fill_level 10 10" \
642 "ignoring GtkScale command \"scale1:set_fill_level 10 10\""
643 check_error "scale1:set_range" \
644 "ignoring GtkScale command \"scale1:set_range\""
645 check_error "scale1:set_range " \
646 "ignoring GtkScale command \"scale1:set_range \""
647 check_error "scale1:set_range 10" \
648 "ignoring GtkScale command \"scale1:set_range 10\""
649 check_error "scale1:set_range $BIG_NUM" \
650 "ignoring GtkScale command \"scale1:set_range $BIG_NUM\""
651 check_error "scale1:set_range x 10" \
652 "ignoring GtkScale command \"scale1:set_range x 10\""
653 check_error "scale1:set_range 10 10 10" \
654 "ignoring GtkScale command \"scale1:set_range 10 10 10\""
655 check_error "scale1:set_increments" \
656 "ignoring GtkScale command \"scale1:set_increments\""
657 check_error "scale1:set_increments " \
658 "ignoring GtkScale command \"scale1:set_increments \""
659 check_error "scale1:set_increments 10" \
660 "ignoring GtkScale command \"scale1:set_increments 10\""
661 check_error "scale1:set_increments $BIG_NUM" \
662 "ignoring GtkScale command \"scale1:set_increments $BIG_NUM\""
663 check_error "scale1:set_increments x 10" \
664 "ignoring GtkScale command \"scale1:set_increments x 10\""
665 check_error "scale1:set_increments 10 10 10" \
666 "ignoring GtkScale command \"scale1:set_increments 10 10 10\""
667 # GtkProgressBar
668 check_error "progressbar1:nnn" \
669 "ignoring GtkProgressBar command \"progressbar1:nnn\""
670 check_error "progressbar1:set_fraction" \
671 "ignoring GtkProgressBar command \"progressbar1:set_fraction\""
672 check_error "progressbar1:set_fraction " \
673 "ignoring GtkProgressBar command \"progressbar1:set_fraction \""
674 check_error "progressbar1:set_fraction nnn" \
675 "ignoring GtkProgressBar command \"progressbar1:set_fraction nnn\""
676 check_error "progressbar1:set_fraction $BIG_STRING" \
677 "ignoring GtkProgressBar command \"progressbar1:set_fraction $BIG_STRING\""
678 check_error "progressbar1:set_fraction .5 1" \
679 "ignoring GtkProgressBar command \"progressbar1:set_fraction .5 1\""
680 # GtkSpinner
681 check_error "spinner1:nnn" \
682 "ignoring GtkSpinner command \"spinner1:nnn\""
683 check_error "spinner1:start 1" \
684 "ignoring GtkSpinner command \"spinner1:start 1\""
685 check_error "spinner1:start $BIG_STRING" \
686 "ignoring GtkSpinner command \"spinner1:start $BIG_STRING\""
687 check_error "spinner1:stop 1" \
688 "ignoring GtkSpinner command \"spinner1:stop 1\""
689 check_error "spinner1:stop $BIG_STRING" \
690 "ignoring GtkSpinner command \"spinner1:stop $BIG_STRING\""
691 # GtkStatusbar
692 check_error "statusbar1:nnn" \
693 "ignoring GtkStatusbar command \"statusbar1:nnn\""
694 check_error "statusbar1:push_id" \
695 "ignoring GtkStatusbar command \"statusbar1:push_id\""
696 check_error "statusbar1:pop_id" \
697 "ignoring GtkStatusbar command \"statusbar1:pop_id\""
698 check_error "statusbar1:remove_all_id" \
699 "ignoring GtkStatusbar command \"statusbar1:remove_all_id\""
700 check_error "statusbar1:remove_all_id " \
701 "ignoring GtkStatusbar command \"statusbar1:remove_all_id \""
702 check_error "statusbar1:remove_all_id a b" \
703 "ignoring GtkStatusbar command \"statusbar1:remove_all_id a b\""
704 check_error "statusbar1:remove_all a" \
705 "ignoring GtkStatusbar command \"statusbar1:remove_all a\""
706 check_error "statusbar1:remove_all $BIG_STRING" \
707 "ignoring GtkStatusbar command \"statusbar1:remove_all $BIG_STRING\""
708 # GtkComboBoxText
709 check_error "comboboxtext1:nnn" \
710 "ignoring GtkComboBoxText command \"comboboxtext1:nnn\""
711 check_error "comboboxtext1:force" \
712 "ignoring GtkComboBoxText command \"comboboxtext1:force\""
714 # GtkTreeView #
715 check_error "treeview1:nnn" \
716 "ignoring GtkTreeView command \"treeview1:nnn\""
717 check_error "treeview2:nnn" \
718 "ignoring GtkTreeView command \"treeview2:nnn\""
719 check_error "treeview1:force" \
720 "ignoring GtkTreeView command \"treeview1:force\""
721 # GtkTreeView save
722 check_error "treeview1:save" \
723 "ignoring GtkTreeView command \"treeview1:save\""
724 mkdir $DIR; chmod a-w $DIR
725 check_error "treeview1:save $DIR/$FILE1" \
726 "ignoring GtkTreeView command \"treeview1:save $DIR/$FILE1\""
727 check_error "treeview1:save nonexistent/$FILE1" \
728 "ignoring GtkTreeView command \"treeview1:save nonexistent/$FILE1\""
729 rm -rf $DIR
730 for i in $WEIRD_PATHS; do
731 check_error "treeview1:save nonexistent/$i" \
732 "ignoring GtkTreeView command \"treeview1:save nonexistent/$i\""
733 done
734 # GtkTreeView insert_row
735 check_error "treeview1:insert_row 10000" \
736 "ignoring GtkTreeView command \"treeview1:insert_row 10000\""
737 check_error "treeview1:insert_row $BIG_STRING" \
738 "ignoring GtkTreeView command \"treeview1:insert_row $BIG_STRING\""
739 check_error "treeview1:insert_row -1" \
740 "ignoring GtkTreeView command \"treeview1:insert_row -1\""
741 check_error "treeview1:insert_row nnn" \
742 "ignoring GtkTreeView command \"treeview1:insert_row nnn\""
743 check_error "treeview1:insert_row" \
744 "ignoring GtkTreeView command \"treeview1:insert_row\""
745 check_error "treeview1:insert_row " \
746 "ignoring GtkTreeView command \"treeview1:insert_row \""
747 check_error "treeview1:insert_row -1" \
748 "ignoring GtkTreeView command \"treeview1:insert_row -1\""
749 check_error "treeview1:insert_row 1000" \
750 "ignoring GtkTreeView command \"treeview1:insert_row 1000\""
751 check_error "treeview2:insert_row 0" \
752 "ignoring GtkTreeView command \"treeview2:insert_row 0\""
753 check_error "treeview3:insert_row end" \
754 "missing model/ignoring GtkTreeView command \"treeview3:insert_row end\""
755 check_error "treeview2:insert_row end\n treeview2:insert_row 0 as_child\n treeview2:insert_row 0:0 as_child\n treeview2:expand abc" \
756 "ignoring GtkTreeView command \" treeview2:expand abc\""
757 check_error "treeview2:expand" \
758 "ignoring GtkTreeView command \"treeview2:expand\""
759 check_error "treeview2:expand 0:abc" \
760 "ignoring GtkTreeView command \"treeview2:expand 0:abc\""
761 check_error "treeview2:expand 0 0" \
762 "ignoring GtkTreeView command \"treeview2:expand 0 0\""
763 check_error "treeview2:expand_all abc" \
764 "ignoring GtkTreeView command \"treeview2:expand_all abc\""
765 check_error "treeview2:expand_all $BIG_STRING" \
766 "ignoring GtkTreeView command \"treeview2:expand_all $BIG_STRING\""
767 check_error "treeview2:expand_all 0:abc" \
768 "ignoring GtkTreeView command \"treeview2:expand_all 0:abc\""
769 check_error "treeview2:expand_all 0 0" \
770 "ignoring GtkTreeView command \"treeview2:expand_all 0 0\""
771 check_error "treeview2:collapse abc" \
772 "ignoring GtkTreeView command \"treeview2:collapse abc\""
773 check_error "treeview2:collapse $BIG_STRING" \
774 "ignoring GtkTreeView command \"treeview2:collapse $BIG_STRING\""
775 check_error "treeview2:collapse 0:abc" \
776 "ignoring GtkTreeView command \"treeview2:collapse 0:abc\""
777 check_error "treeview2:collapse 0 0" \
778 "ignoring GtkTreeView command \"treeview2:collapse 0 0\""
779 check_error "treeview2:insert_row" \
780 "ignoring GtkTreeView command \"treeview2:insert_row\""
781 check_error "treeview2:insert_row abc" \
782 "ignoring GtkTreeView command \"treeview2:insert_row abc\""
783 check_error "treeview2:insert_row 0:abc" \
784 "ignoring GtkTreeView command \"treeview2:insert_row 0:abc\""
785 check_error "treeview2:insert_row end 0" \
786 "ignoring GtkTreeView command \"treeview2:insert_row end 0\""
787 # GtkTreeView move_row
788 check_error "treeview1:move_row" \
789 "ignoring GtkTreeView command \"treeview1:move_row\""
790 check_error "treeview1:move_row " \
791 "ignoring GtkTreeView command \"treeview1:move_row \""
792 check_error "treeview1:move_row nnn" \
793 "ignoring GtkTreeView command \"treeview1:move_row nnn\""
794 check_error "treeview1:move_row $BIG_STRING" \
795 "ignoring GtkTreeView command \"treeview1:move_row $BIG_STRING\""
796 check_error "treeview1:move_row 10000 end" \
797 "ignoring GtkTreeView command \"treeview1:move_row 10000 end\""
798 check_error "treeview1:move_row $BIG_STRING end" \
799 "ignoring GtkTreeView command \"treeview1:move_row $BIG_STRING end\""
800 check_error "treeview1:move_row -1 end" \
801 "ignoring GtkTreeView command \"treeview1:move_row -1 end\""
802 check_error "treeview1:move_row nnn end" \
803 "ignoring GtkTreeView command \"treeview1:move_row nnn end\""
804 check_error "treeview1:move_row 0 10000" \
805 "ignoring GtkTreeView command \"treeview1:move_row 0 10000\""
806 check_error "treeview1:move_row 0 -1" \
807 "ignoring GtkTreeView command \"treeview1:move_row 0 -1\""
808 check_error "treeview1:move_row 0 nnn" \
809 "ignoring GtkTreeView command \"treeview1:move_row 0 nnn\""
810 check_error "treeview2:move_row" \
811 "ignoring GtkTreeView command \"treeview2:move_row\""
812 check_error "treeview2:move_row 0:0 abc" \
813 "ignoring GtkTreeView command \"treeview2:move_row 0:0 abc\""
814 check_error "treeview2:move_row 0:0 0:abc" \
815 "ignoring GtkTreeView command \"treeview2:move_row 0:0 0:abc\""
816 check_error "treeview2:move_row abc end" \
817 "ignoring GtkTreeView command \"treeview2:move_row abc end\""
818 check_error "treeview2:move_row 0:abc end" \
819 "ignoring GtkTreeView command \"treeview2:move_row 0:abc end\""
820 check_error "treeview2:move_row 0 end 0" \
821 "ignoring GtkTreeView command \"treeview2:move_row 0 end 0\""
822 # GtkTreeView remove_row
823 check_error "treeview1:remove_row 10000" \
824 "ignoring GtkTreeView command \"treeview1:remove_row 10000\""
825 check_error "treeview1:remove_row -1" \
826 "ignoring GtkTreeView command \"treeview1:remove_row -1\""
827 check_error "treeview1:remove_row nnn" \
828 "ignoring GtkTreeView command \"treeview1:remove_row nnn\""
829 check_error "treeview1:remove_row $BIG_STRING" \
830 "ignoring GtkTreeView command \"treeview1:remove_row $BIG_STRING\""
831 check_error "treeview1:remove_row" \
832 "ignoring GtkTreeView command \"treeview1:remove_row\""
833 check_error "treeview1:remove_row " \
834 "ignoring GtkTreeView command \"treeview1:remove_row \""
835 check_error "treeview2:remove_row" \
836 "ignoring GtkTreeView command \"treeview2:remove_row\""
837 check_error "treeview2:remove_row abc" \
838 "ignoring GtkTreeView command \"treeview2:remove_row abc\""
839 check_error "treeview2:remove_row 0:abc" \
840 "ignoring GtkTreeView command \"treeview2:remove_row 0:abc\""
841 check_error "treeview2:remove_row 0 0" \
842 "ignoring GtkTreeView command \"treeview2:remove_row 0 0\""
843 # GtkTreeView scroll
844 check_error "treeview1:scroll" \
845 "ignoring GtkTreeView command \"treeview1:scroll\""
846 check_error "treeview1:scroll " \
847 "ignoring GtkTreeView command \"treeview1:scroll \""
848 check_error "treeview1:scroll nnn" \
849 "ignoring GtkTreeView command \"treeview1:scroll nnn\""
850 check_error "treeview1:scroll $BIG_STRING" \
851 "ignoring GtkTreeView command \"treeview1:scroll $BIG_STRING\""
852 check_error "treeview1:scroll -1 1" \
853 "ignoring GtkTreeView command \"treeview1:scroll -1 1\""
854 check_error "treeview1:scroll 1 -1" \
855 "ignoring GtkTreeView command \"treeview1:scroll 1 -1\""
856 check_error "treeview1:scroll nnn 1" \
857 "ignoring GtkTreeView command \"treeview1:scroll nnn 1\""
858 check_error "treeview1:scroll 1 nnn" \
859 "ignoring GtkTreeView command \"treeview1:scroll 1 nnn\""
860 check_error "treeview1:scroll 0 0 0" \
861 "ignoring GtkTreeView command \"treeview1:scroll 0 0 0\""
862 check_error "treeview2:scroll" \
863 "ignoring GtkTreeView command \"treeview2:scroll\""
864 check_error "treeview2:scroll abc" \
865 "ignoring GtkTreeView command \"treeview2:scroll abc\""
866 check_error "treeview2:scroll 0:abc" \
867 "ignoring GtkTreeView command \"treeview2:scroll 0:abc\""
868 check_error "treeview2:scroll abc 0" \
869 "ignoring GtkTreeView command \"treeview2:scroll abc 0\""
870 check_error "treeview2:scroll 0:abc 0" \
871 "ignoring GtkTreeView command \"treeview2:scroll 0:abc 0\""
872 check_error "treeview2:scroll 0:0" \
873 "ignoring GtkTreeView command \"treeview2:scroll 0:0\""
874 check_error "treeview2:scroll 0:0 abc" \
875 "ignoring GtkTreeView command \"treeview2:scroll 0:0 abc\""
876 check_error "treeview2:set_cursor abc" \
877 "ignoring GtkTreeView command \"treeview2:set_cursor abc\""
878 check_error "treeview2:set_cursor 0:abc" \
879 "ignoring GtkTreeView command \"treeview2:set_cursor 0:abc\""
880 check_error "treeview2:set_cursor 0 0" \
881 "ignoring GtkTreeView command \"treeview2:set_cursor 0 0\""
882 check_error "treeview2:set_cursor 0 $BIG_STRING" \
883 "ignoring GtkTreeView command \"treeview2:set_cursor 0 $BIG_STRING\""
884 check_error "treeview2:clear 0" \
885 "ignoring GtkTreeView command \"treeview2:clear 0\""
886 check_error "treeview2:clear\n treeview2:insert_row 0" \
887 "ignoring GtkTreeView command \" treeview2:insert_row 0\""
888 # GtkTreeView set
889 check_error "treeview1:set" \
890 "ignoring GtkTreeView command \"treeview1:set\""
891 check_error "treeview1:set " \
892 "ignoring GtkTreeView command \"treeview1:set \""
893 check_error "treeview1:set nnn" \
894 "ignoring GtkTreeView command \"treeview1:set nnn\""
895 check_error "treeview1:set $BIG_STRING" \
896 "ignoring GtkTreeView command \"treeview1:set $BIG_STRING\""
897 check_error "treeview1:set 0 nnn" \
898 "ignoring GtkTreeView command \"treeview1:set 0 nnn\""
899 check_error "treeview1:set nnn 0" \
900 "ignoring GtkTreeView command \"treeview1:set nnn 0\""
901 check_error "treeview1:set 1 10000 77" \
902 "ignoring GtkTreeView command \"treeview1:set 1 10000 77\""
903 check_error "treeview1:set 1 11 77" \
904 "ignoring GtkTreeView command \"treeview1:set 1 11 77\""
905 check_error "treeview1:set nnn 1 77" \
906 "ignoring GtkTreeView command \"treeview1:set nnn 1 77\""
907 check_error "treeview1:set 1 nnn 77" \
908 "ignoring GtkTreeView command \"treeview1:set 1 nnn 77\""
909 check_error "treeview1:set -1 1 77" \
910 "ignoring GtkTreeView command \"treeview1:set -1 1 77\""
911 check_error "treeview1:set 1 -1 77" \
912 "ignoring GtkTreeView command \"treeview1:set 1 -1 77\""
913 # GtkTreeView set junk into numeric columns
914 check_error "treeview1:set 1 1 abc" \
915 "ignoring GtkTreeView command \"treeview1:set 1 1 abc\""
916 check_error "treeview1:set 1 1 $BIG_STRING" \
917 "ignoring GtkTreeView command \"treeview1:set 1 1 $BIG_STRING\""
918 check_error "treeview1:set 1 1" \
919 "ignoring GtkTreeView command \"treeview1:set 1 1\""
920 check_error "treeview1:set 1 1 555.5" \
921 "ignoring GtkTreeView command \"treeview1:set 1 1 555.5\""
922 check_error "treeview1:set 1 1 555 5" \
923 "ignoring GtkTreeView command \"treeview1:set 1 1 555 5\""
924 check_error "treeview1:set 1 7 abc" \
925 "ignoring GtkTreeView command \"treeview1:set 1 7 abc\""
926 check_error "treeview1:set 1 7 $BIG_STRING" \
927 "ignoring GtkTreeView command \"treeview1:set 1 7 $BIG_STRING\""
928 check_error "treeview1:set 1 7" \
929 "ignoring GtkTreeView command \"treeview1:set 1 7\""
930 check_error "treeview1:set 1 7 555 5" \
931 "ignoring GtkTreeView command \"treeview1:set 1 7 555 5\""
933 # GtkTreeViewColumn (which is not a GtkWidget)
934 check_error "treeviewcolumn3:nnn" \
935 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:nnn\""
936 check_error "treeviewcolumn3:force" \
937 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:force\""
938 check_error "treeviewcolumn3:grab_focus" \
939 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:grab_focus\""
940 check_error "treeviewcolumn3:snapshot x.svg" \
941 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:snapshot x.svg\""
942 check_error "treeviewcolumn3:set_sensitive 0" \
943 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:set_sensitive 0\""
944 check_error "treeviewcolumn3:set_size_request 50 60" \
945 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:set_size_request 50 60\""
946 check_error "treeviewcolumn3:set_visible 0" \
947 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:set_visible 0\""
948 check_error "treeviewcolumn3:style" \
949 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:style\""
950 check_error "treeviewcolumn3:set_tooltip_text" \
951 "ignoring GtkTreeViewColumn command \"treeviewcolumn3:set_tooltip_text\""
953 # GtkEntry
954 check_error "entry1:nnn" \
955 "ignoring GtkEntry command \"entry1:nnn\""
956 # GtkCalendar
957 check_error "calendar1:nnn" \
958 "ignoring GtkCalendar command \"calendar1:nnn\""
959 check_error "calendar1:select_date" \
960 "ignoring GtkCalendar command \"calendar1:select_date\""
961 check_error "calendar1:select_date " \
962 "ignoring GtkCalendar command \"calendar1:select_date \""
963 check_error "calendar1:select_date nnn" \
964 "ignoring GtkCalendar command \"calendar1:select_date nnn\""
965 check_error "calendar1:select_date $BIG_STRING" \
966 "ignoring GtkCalendar command \"calendar1:select_date $BIG_STRING\""
967 check_error "calendar1:select_date 2000-12-33" \
968 "ignoring GtkCalendar command \"calendar1:select_date 2000-12-33\""
969 check_error "calendar1:select_date 2000-13-20" \
970 "ignoring GtkCalendar command \"calendar1:select_date 2000-13-20\""
971 check_error "calendar1:select_date 2000-10-10 1" \
972 "ignoring GtkCalendar command \"calendar1:select_date 2000-10-10 1\""
973 check_error "calendar1:mark_day" \
974 "ignoring GtkCalendar command \"calendar1:mark_day\""
975 check_error "calendar1:mark_day " \
976 "ignoring GtkCalendar command \"calendar1:mark_day \""
977 check_error "calendar1:mark_day nnn" \
978 "ignoring GtkCalendar command \"calendar1:mark_day nnn\""
979 check_error "calendar1:mark_day $BIG_STRING" \
980 "ignoring GtkCalendar command \"calendar1:mark_day $BIG_STRING\""
981 check_error "calendar1:mark_day 10 1" \
982 "ignoring GtkCalendar command \"calendar1:mark_day 10 1\""
983 check_error "calendar1:clear_marks 1" \
984 "ignoring GtkCalendar command \"calendar1:clear_marks 1\""
985 # GtkSocket
986 check_error "socket1:nnn" \
987 "ignoring GtkSocket command \"socket1:nnn\""
988 check_error "socket1:id 1" \
989 "ignoring GtkSocket command \"socket1:id 1\""
990 # GtkScrolledWindow
991 check_error "scrolledwindow3:nnn" \
992 "ignoring GtkScrolledWindow command \"scrolledwindow3:nnn\""
993 check_error "scrolledwindow3:hscroll" \
994 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll\""
995 check_error "scrolledwindow3:hscroll " \
996 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll \""
997 check_error "scrolledwindow3:hscroll nnn" \
998 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll nnn\""
999 check_error "scrolledwindow3:hscroll $BIG_STRING" \
1000 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll $BIG_STRING\""
1001 check_error "scrolledwindow3:hscroll 100 100" \
1002 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll 100 100\""
1003 check_error "scrolledwindow3:vscroll" \
1004 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll\""
1005 check_error "scrolledwindow3:vscroll " \
1006 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll \""
1007 check_error "scrolledwindow3:vscroll nnn" \
1008 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll nnn\""
1009 check_error "scrolledwindow3:vscroll $BIG_STRING" \
1010 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll $BIG_STRING\""
1011 check_error "scrolledwindow3:vscroll 100 100" \
1012 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll 100 100\""
1013 check_error "scrolledwindow3:hscroll_to_range" \
1014 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range\""
1015 check_error "scrolledwindow3:hscroll_to_range " \
1016 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range \""
1017 check_error "scrolledwindow3:hscroll_to_range nnn" \
1018 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range nnn\""
1019 check_error "scrolledwindow3:hscroll_to_range $BIG_STRING" \
1020 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range $BIG_STRING\""
1021 check_error "scrolledwindow3:hscroll_to_range 10" \
1022 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range 10\""
1023 check_error "scrolledwindow3:hscroll_to_range 10 nnn" \
1024 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range 10 nnn\""
1025 check_error "scrolledwindow3:hscroll_to_range nnn 10" \
1026 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range nnn 10\""
1027 check_error "scrolledwindow3:hscroll_to_range 5 10 10" \
1028 "ignoring GtkScrolledWindow command \"scrolledwindow3:hscroll_to_range 5 10 10\""
1029 check_error "scrolledwindow3:vscroll_to_range" \
1030 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range\""
1031 check_error "scrolledwindow3:vscroll_to_range " \
1032 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range \""
1033 check_error "scrolledwindow3:vscroll_to_range nnn" \
1034 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range nnn\""
1035 check_error "scrolledwindow3:vscroll_to_range $BIG_STRING" \
1036 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range $BIG_STRING\""
1037 check_error "scrolledwindow3:vscroll_to_range 10" \
1038 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range 10\""
1039 check_error "scrolledwindow3:vscroll_to_range 10 nnn" \
1040 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range 10 nnn\""
1041 check_error "scrolledwindow3:vscroll_to_range nnn 10" \
1042 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range nnn 10\""
1043 check_error "scrolledwindow3:vscroll_to_range 5 10 10" \
1044 "ignoring GtkScrolledWindow command \"scrolledwindow3:vscroll_to_range 5 10 10\""
1045 # GtkEventBox
1046 check_error "eventbox1:nnn" \
1047 "ignoring GtkEventBox command \"eventbox1:nnn\""
1048 # GtkDrawingArea
1049 check_error "drawingarea1:nnn" \
1050 "ignoring GtkDrawingArea command \"drawingarea1:nnn\""
1051 check_error "drawingarea1:rectangle" \
1052 "ignoring GtkDrawingArea command \"drawingarea1:rectangle\""
1053 check_error "drawingarea1:rectangle " \
1054 "ignoring GtkDrawingArea command \"drawingarea1:rectangle \""
1055 check_error "drawingarea1:rectangle nnn" \
1056 "ignoring GtkDrawingArea command \"drawingarea1:rectangle nnn\""
1057 check_error "drawingarea1:rectangle $BIG_STRING" \
1058 "ignoring GtkDrawingArea command \"drawingarea1:rectangle $BIG_STRING\""
1059 check_error "drawingarea1:rectangle 1" \
1060 "ignoring GtkDrawingArea command \"drawingarea1:rectangle 1\""
1061 check_error "drawingarea1:rectangle 1 10" \
1062 "ignoring GtkDrawingArea command \"drawingarea1:rectangle 1 10\""
1063 check_error "drawingarea1:rectangle 1 10 10" \
1064 "ignoring GtkDrawingArea command \"drawingarea1:rectangle 1 10 10\""
1065 check_error "drawingarea1:rectangle 1 10 10 20" \
1066 "ignoring GtkDrawingArea command \"drawingarea1:rectangle 1 10 10 20\""
1067 check_error "drawingarea1:rectangle 1 10 10 20 nnn" \
1068 "ignoring GtkDrawingArea command \"drawingarea1:rectangle 1 10 10 20 nnn\""
1069 check_error "drawingarea1:rectangle 1 10 10 20 20 20" \
1070 "ignoring GtkDrawingArea command \"drawingarea1:rectangle 1 10 10 20 20 20\""
1071 check_error "drawingarea1:arc" \
1072 "ignoring GtkDrawingArea command \"drawingarea1:arc\""
1073 check_error "drawingarea1:arc " \
1074 "ignoring GtkDrawingArea command \"drawingarea1:arc \""
1075 check_error "drawingarea1:arc nnn" \
1076 "ignoring GtkDrawingArea command \"drawingarea1:arc nnn\""
1077 check_error "drawingarea1:arc $BIG_STRING" \
1078 "ignoring GtkDrawingArea command \"drawingarea1:arc $BIG_STRING\""
1079 check_error "drawingarea1:arc 1" \
1080 "ignoring GtkDrawingArea command \"drawingarea1:arc 1\""
1081 check_error "drawingarea1:arc 1 10" \
1082 "ignoring GtkDrawingArea command \"drawingarea1:arc 1 10\""
1083 check_error "drawingarea1:arc 1 10 10" \
1084 "ignoring GtkDrawingArea command \"drawingarea1:arc 1 10 10\""
1085 check_error "drawingarea1:arc 1 10 10 20" \
1086 "ignoring GtkDrawingArea command \"drawingarea1:arc 1 10 10 20\""
1087 check_error "drawingarea1:arc 1 10 10 20 45" \
1088 "ignoring GtkDrawingArea command \"drawingarea1:arc 1 10 10 20 45\""
1089 check_error "drawingarea1:arc 1 10 10 20 45 nnn" \
1090 "ignoring GtkDrawingArea command \"drawingarea1:arc 1 10 10 20 45 nnn\""
1091 check_error "drawingarea1:arc 1 10 10 20 45 90 7" \
1092 "ignoring GtkDrawingArea command \"drawingarea1:arc 1 10 10 20 45 90 7\""
1093 check_error "drawingarea1:arc_negative" \
1094 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative\""
1095 check_error "drawingarea1:arc_negative " \
1096 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative \""
1097 check_error "drawingarea1:arc_negative nnn" \
1098 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative nnn\""
1099 check_error "drawingarea1:arc_negative $BIG_STRING" \
1100 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative $BIG_STRING\""
1101 check_error "drawingarea1:arc_negative 1" \
1102 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1\""
1103 check_error "drawingarea1:arc_negative 1 10" \
1104 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1 10\""
1105 check_error "drawingarea1:arc_negative 1 10 10" \
1106 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1 10 10\""
1107 check_error "drawingarea1:arc_negative 1 10 10 20" \
1108 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1 10 10 20\""
1109 check_error "drawingarea1:arc_negative 1 10 10 20 45" \
1110 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1 10 10 20 45\""
1111 check_error "drawingarea1:arc_negative 1 10 10 20 45 nnn" \
1112 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1 10 10 20 45 nnn\""
1113 check_error "drawingarea1:arc_negative 1 10 10 20 45 90 7" \
1114 "ignoring GtkDrawingArea command \"drawingarea1:arc_negative 1 10 10 20 45 90 7\""
1115 check_error "drawingarea1:curve_to" \
1116 "ignoring GtkDrawingArea command \"drawingarea1:curve_to\""
1117 check_error "drawingarea1:curve_to " \
1118 "ignoring GtkDrawingArea command \"drawingarea1:curve_to \""
1119 check_error "drawingarea1:curve_to nnn" \
1120 "ignoring GtkDrawingArea command \"drawingarea1:curve_to nnn\""
1121 check_error "drawingarea1:curve_to $BIG_STRING" \
1122 "ignoring GtkDrawingArea command \"drawingarea1:curve_to $BIG_STRING\""
1123 check_error "drawingarea1:curve_to 1" \
1124 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1\""
1125 check_error "drawingarea1:curve_to 1 10" \
1126 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10\""
1127 check_error "drawingarea1:curve_to 1 10 10" \
1128 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10 10\""
1129 check_error "drawingarea1:curve_to 1 10 10 20" \
1130 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10 10 20\""
1131 check_error "drawingarea1:curve_to 1 10 10 20 20" \
1132 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10 10 20 20\""
1133 check_error "drawingarea1:curve_to 1 10 10 20 20 25" \
1134 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10 10 20 20 25\""
1135 check_error "drawingarea1:curve_to 1 10 10 20 20 25 nnn" \
1136 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10 10 20 20 25 nnn\""
1137 check_error "drawingarea1:curve_to 1 10 10 20 20 25 25 77" \
1138 "ignoring GtkDrawingArea command \"drawingarea1:curve_to 1 10 10 20 20 25 25 77\""
1139 check_error "drawingarea1:rel_curve_to" \
1140 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to\""
1141 check_error "drawingarea1:rel_curve_to " \
1142 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to \""
1143 check_error "drawingarea1:rel_curve_to nnn" \
1144 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to nnn\""
1145 check_error "drawingarea1:rel_curve_to $BIG_STRING" \
1146 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to $BIG_STRING\""
1147 check_error "drawingarea1:rel_curve_to 1" \
1148 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1\""
1149 check_error "drawingarea1:rel_curve_to 1 10" \
1150 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10\""
1151 check_error "drawingarea1:rel_curve_to 1 10 10" \
1152 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10 10\""
1153 check_error "drawingarea1:rel_curve_to 1 10 10 20" \
1154 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10 10 20\""
1155 check_error "drawingarea1:rel_curve_to 1 10 10 20 20" \
1156 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10 10 20 20\""
1157 check_error "drawingarea1:rel_curve_to 1 10 10 20 20 25" \
1158 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10 10 20 20 25\""
1159 check_error "drawingarea1:rel_curve_to 1 10 10 20 20 25 nnn" \
1160 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10 10 20 20 25 nnn\""
1161 check_error "drawingarea1:rel_curve_to 1 10 10 20 20 25 25 77" \
1162 "ignoring GtkDrawingArea command \"drawingarea1:rel_curve_to 1 10 10 20 20 25 25 77\""
1163 check_error "drawingarea1:line_to" \
1164 "ignoring GtkDrawingArea command \"drawingarea1:line_to\""
1165 check_error "drawingarea1:line_to " \
1166 "ignoring GtkDrawingArea command \"drawingarea1:line_to \""
1167 check_error "drawingarea1:line_to nnn" \
1168 "ignoring GtkDrawingArea command \"drawingarea1:line_to nnn\""
1169 check_error "drawingarea1:line_to $BIG_STRING" \
1170 "ignoring GtkDrawingArea command \"drawingarea1:line_to $BIG_STRING\""
1171 check_error "drawingarea1:line_to 1" \
1172 "ignoring GtkDrawingArea command \"drawingarea1:line_to 1\""
1173 check_error "drawingarea1:line_to 1 20" \
1174 "ignoring GtkDrawingArea command \"drawingarea1:line_to 1 20\""
1175 check_error "drawingarea1:line_to 1 20 nnn" \
1176 "ignoring GtkDrawingArea command \"drawingarea1:line_to 1 20 nnn\""
1177 check_error "drawingarea1:line_to 1 20 20 20" \
1178 "ignoring GtkDrawingArea command \"drawingarea1:line_to 1 20 20 20\""
1179 check_error "drawingarea1:rel_line_to" \
1180 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to\""
1181 check_error "drawingarea1:rel_line_to " \
1182 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to \""
1183 check_error "drawingarea1:rel_line_to nnn" \
1184 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to nnn\""
1185 check_error "drawingarea1:rel_line_to $BIG_STRING" \
1186 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to $BIG_STRING\""
1187 check_error "drawingarea1:rel_line_to 1" \
1188 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to 1\""
1189 check_error "drawingarea1:rel_line_to 1 20" \
1190 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to 1 20\""
1191 check_error "drawingarea1:rel_line_to 1 20 nnn" \
1192 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to 1 20 nnn\""
1193 check_error "drawingarea1:rel_line_to 1 20 nnn" \
1194 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to 1 20 nnn\""
1195 check_error "drawingarea1:rel_line_to 1 20 20 20" \
1196 "ignoring GtkDrawingArea command \"drawingarea1:rel_line_to 1 20 20 20\""
1197 check_error "drawingarea1:move_to" \
1198 "ignoring GtkDrawingArea command \"drawingarea1:move_to\""
1199 check_error "drawingarea1:move_to " \
1200 "ignoring GtkDrawingArea command \"drawingarea1:move_to \""
1201 check_error "drawingarea1:move_to nnn" \
1202 "ignoring GtkDrawingArea command \"drawingarea1:move_to nnn\""
1203 check_error "drawingarea1:move_to $BIG_STRING" \
1204 "ignoring GtkDrawingArea command \"drawingarea1:move_to $BIG_STRING\""
1205 check_error "drawingarea1:move_to 1" \
1206 "ignoring GtkDrawingArea command \"drawingarea1:move_to 1\""
1207 check_error "drawingarea1:move_to 1 20" \
1208 "ignoring GtkDrawingArea command \"drawingarea1:move_to 1 20\""
1209 check_error "drawingarea1:move_to 1 20 nnn" \
1210 "ignoring GtkDrawingArea command \"drawingarea1:move_to 1 20 nnn\""
1211 check_error "drawingarea1:move_to 1 20 20 20" \
1212 "ignoring GtkDrawingArea command \"drawingarea1:move_to 1 20 20 20\""
1213 check_error "drawingarea1:rel_move_to" \
1214 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to\""
1215 check_error "drawingarea1:rel_move_to " \
1216 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to \""
1217 check_error "drawingarea1:rel_move_to nnn" \
1218 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to nnn\""
1219 check_error "drawingarea1:rel_move_to $BIG_STRING" \
1220 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to $BIG_STRING\""
1221 check_error "drawingarea1:rel_move_to 1" \
1222 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to 1\""
1223 check_error "drawingarea1:rel_move_to 1 20" \
1224 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to 1 20\""
1225 check_error "drawingarea1:rel_move_to 1 20 nnn" \
1226 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to 1 20 nnn\""
1227 check_error "drawingarea1:rel_move_to 1 20 20 20" \
1228 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_to 1 20 20 20\""
1229 check_error "drawingarea1:close_path" \
1230 "ignoring GtkDrawingArea command \"drawingarea1:close_path\""
1231 check_error "drawingarea1:close_path " \
1232 "ignoring GtkDrawingArea command \"drawingarea1:close_path \""
1233 check_error "drawingarea1:close_path nnn" \
1234 "ignoring GtkDrawingArea command \"drawingarea1:close_path nnn\""
1235 check_error "drawingarea1:close_path $BIG_STRING" \
1236 "ignoring GtkDrawingArea command \"drawingarea1:close_path $BIG_STRING\""
1237 check_error "drawingarea1:close_path 1 1" \
1238 "ignoring GtkDrawingArea command \"drawingarea1:close_path 1 1\""
1239 check_error "drawingarea1:set_source_rgba" \
1240 "ignoring GtkDrawingArea command \"drawingarea1:set_source_rgba\""
1241 check_error "drawingarea1:set_source_rgba " \
1242 "ignoring GtkDrawingArea command \"drawingarea1:set_source_rgba \""
1243 check_error "drawingarea1:set_source_rgba nnn" \
1244 "ignoring GtkDrawingArea command \"drawingarea1:set_source_rgba nnn\""
1245 check_error "drawingarea1:set_source_rgba $BIG_STRING" \
1246 "ignoring GtkDrawingArea command \"drawingarea1:set_source_rgba $BIG_STRING\""
1247 check_error "drawingarea1:set_dash" \
1248 "ignoring GtkDrawingArea command \"drawingarea1:set_dash\""
1249 check_error "drawingarea1:set_dash " \
1250 "ignoring GtkDrawingArea command \"drawingarea1:set_dash \""
1251 check_error "drawingarea1:set_dash nnn" \
1252 "ignoring GtkDrawingArea command \"drawingarea1:set_dash nnn\""
1253 check_error "drawingarea1:set_dash $BIG_STRING" \
1254 "ignoring GtkDrawingArea command \"drawingarea1:set_dash $BIG_STRING\""
1255 check_error "drawingarea1:set_line_cap" \
1256 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap\""
1257 check_error "drawingarea1:set_line_cap " \
1258 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap \""
1259 check_error "drawingarea1:set_line_cap nnn" \
1260 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap nnn\""
1261 check_error "drawingarea1:set_line_cap $BIG_STRING" \
1262 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap $BIG_STRING\""
1263 check_error "drawingarea1:set_line_cap 1" \
1264 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap 1\""
1265 check_error "drawingarea1:set_line_cap 1 nnn" \
1266 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap 1 nnn\""
1267 check_error "drawingarea1:set_line_cap 1 butt butt" \
1268 "ignoring GtkDrawingArea command \"drawingarea1:set_line_cap 1 butt butt\""
1269 check_error "drawingarea1:set_line_join" \
1270 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join\""
1271 check_error "drawingarea1:set_line_join " \
1272 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join \""
1273 check_error "drawingarea1:set_line_join nnn" \
1274 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join nnn\""
1275 check_error "drawingarea1:set_line_join $BIG_STRING" \
1276 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join $BIG_STRING\""
1277 check_error "drawingarea1:set_line_join 1" \
1278 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join 1\""
1279 check_error "drawingarea1:set_line_join 1 nnn" \
1280 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join 1 nnn\""
1281 check_error "drawingarea1:set_line_join 1 miter miter" \
1282 "ignoring GtkDrawingArea command \"drawingarea1:set_line_join 1 miter miter\""
1283 check_error "drawingarea1:set_line_width" \
1284 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width\""
1285 check_error "drawingarea1:set_line_width " \
1286 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width \""
1287 check_error "drawingarea1:set_line_width nnn" \
1288 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width nnn\""
1289 check_error "drawingarea1:set_line_width $BIG_STRING" \
1290 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width $BIG_STRING\""
1291 check_error "drawingarea1:set_line_width 1" \
1292 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width 1\""
1293 check_error "drawingarea1:set_line_width 1 nnn" \
1294 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width 1 nnn\""
1295 check_error "drawingarea1:set_line_width 1 3 3" \
1296 "ignoring GtkDrawingArea command \"drawingarea1:set_line_width 1 3 3\""
1297 check_error "drawingarea1:fill" \
1298 "ignoring GtkDrawingArea command \"drawingarea1:fill\""
1299 check_error "drawingarea1:fill " \
1300 "ignoring GtkDrawingArea command \"drawingarea1:fill \""
1301 check_error "drawingarea1:fill nnn" \
1302 "ignoring GtkDrawingArea command \"drawingarea1:fill nnn\""
1303 check_error "drawingarea1:fill $BIG_STRING" \
1304 "ignoring GtkDrawingArea command \"drawingarea1:fill $BIG_STRING\""
1305 check_error "drawingarea1:fill 1 1" \
1306 "ignoring GtkDrawingArea command \"drawingarea1:fill 1 1\""
1307 check_error "drawingarea1:fill_preserve" \
1308 "ignoring GtkDrawingArea command \"drawingarea1:fill_preserve\""
1309 check_error "drawingarea1:fill_preserve " \
1310 "ignoring GtkDrawingArea command \"drawingarea1:fill_preserve \""
1311 check_error "drawingarea1:fill_preserve nnn" \
1312 "ignoring GtkDrawingArea command \"drawingarea1:fill_preserve nnn\""
1313 check_error "drawingarea1:fill_preserve $BIG_STRING" \
1314 "ignoring GtkDrawingArea command \"drawingarea1:fill_preserve $BIG_STRING\""
1315 check_error "drawingarea1:fill_preserve 1 1" \
1316 "ignoring GtkDrawingArea command \"drawingarea1:fill_preserve 1 1\""
1317 check_error "drawingarea1:stroke" \
1318 "ignoring GtkDrawingArea command \"drawingarea1:stroke\""
1319 check_error "drawingarea1:stroke " \
1320 "ignoring GtkDrawingArea command \"drawingarea1:stroke \""
1321 check_error "drawingarea1:stroke nnn" \
1322 "ignoring GtkDrawingArea command \"drawingarea1:stroke nnn\""
1323 check_error "drawingarea1:stroke $BIG_STRING" \
1324 "ignoring GtkDrawingArea command \"drawingarea1:stroke $BIG_STRING\""
1325 check_error "drawingarea1:stroke 3 3" \
1326 "ignoring GtkDrawingArea command \"drawingarea1:stroke 3 3\""
1327 check_error "drawingarea1:stroke_preserve" \
1328 "ignoring GtkDrawingArea command \"drawingarea1:stroke_preserve\""
1329 check_error "drawingarea1:stroke_preserve " \
1330 "ignoring GtkDrawingArea command \"drawingarea1:stroke_preserve \""
1331 check_error "drawingarea1:stroke_preserve nnn" \
1332 "ignoring GtkDrawingArea command \"drawingarea1:stroke_preserve nnn\""
1333 check_error "drawingarea1:stroke_preserve $BIG_STRING" \
1334 "ignoring GtkDrawingArea command \"drawingarea1:stroke_preserve $BIG_STRING\""
1335 check_error "drawingarea1:stroke_preserve 3 3" \
1336 "ignoring GtkDrawingArea command \"drawingarea1:stroke_preserve 3 3\""
1337 check_error "drawingarea1:remove" \
1338 "ignoring GtkDrawingArea command \"drawingarea1:remove\""
1339 check_error "drawingarea1:remove " \
1340 "ignoring GtkDrawingArea command \"drawingarea1:remove \""
1341 check_error "drawingarea1:remove nnn" \
1342 "ignoring GtkDrawingArea command \"drawingarea1:remove nnn\""
1343 check_error "drawingarea1:remove $BIG_STRING" \
1344 "ignoring GtkDrawingArea command \"drawingarea1:remove $BIG_STRING\""
1345 check_error "drawingarea1:remove 1 1" \
1346 "ignoring GtkDrawingArea command \"drawingarea1:remove 1 1\""
1347 check_error "drawingarea1:set_show_text" \
1348 "ignoring GtkDrawingArea command \"drawingarea1:set_show_text\""
1349 check_error "drawingarea1:set_show_text " \
1350 "ignoring GtkDrawingArea command \"drawingarea1:set_show_text \""
1351 check_error "drawingarea1:set_show_text nnn" \
1352 "ignoring GtkDrawingArea command \"drawingarea1:set_show_text nnn\""
1353 check_error "drawingarea1:set_show_text $BIG_STRING" \
1354 "ignoring GtkDrawingArea command \"drawingarea1:set_show_text $BIG_STRING\""
1355 check_error "drawingarea1:set_font_face" \
1356 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face\""
1357 check_error "drawingarea1:set_font_face " \
1358 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face \""
1359 check_error "drawingarea1:set_font_face nnn" \
1360 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face nnn\""
1361 check_error "drawingarea1:set_font_face $BIG_STRING" \
1362 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face $BIG_STRING\""
1363 check_error "drawingarea1:set_font_face 1" \
1364 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1\""
1365 check_error "drawingarea1:set_font_face 1 normal" \
1366 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1 normal\""
1367 check_error "drawingarea1:set_font_size" \
1368 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size\""
1369 check_error "drawingarea1:set_font_size " \
1370 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size \""
1371 check_error "drawingarea1:set_font_size nnn" \
1372 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size nnn\""
1373 check_error "drawingarea1:set_font_size $BIG_STRING" \
1374 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size $BIG_STRING\""
1375 check_error "drawingarea1:set_font_size 1" \
1376 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size 1\""
1377 check_error "drawingarea1:set_font_size 1 nnn" \
1378 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size 1 nnn\""
1379 check_error "drawingarea1:set_font_size 1 10 10" \
1380 "ignoring GtkDrawingArea command \"drawingarea1:set_font_size 1 10 10\""
1381 check_error "drawingarea1:set_font_face" \
1382 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face\""
1383 check_error "drawingarea1:set_font_face 1" \
1384 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1\""
1385 check_error "drawingarea1:set_font_face 1 normal" \
1386 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1 normal\""
1387 check_error "drawingarea1:set_font_face 1 normal nnn" \
1388 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1 normal nnn\""
1389 check_error "drawingarea1:set_font_face 1 nnn normal" \
1390 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1 nnn normal\""
1391 check_error "drawingarea1:set_font_face 1 normal $BIG_STRING" \
1392 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1 normal $BIG_STRING\""
1393 check_error "drawingarea1:set_font_face 1 $BIG_STRING normal" \
1394 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face 1 $BIG_STRING normal\""
1395 check_error "drawingarea1:set_font_face x normal normal" \
1396 "ignoring GtkDrawingArea command \"drawingarea1:set_font_face x normal normal\""
1397 check_error "drawingarea1:rel_move_for" \
1398 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_for\""
1399 check_error "drawingarea1:rel_move_for " \
1400 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_for \""
1401 check_error "drawingarea1:rel_move_for 1" \
1402 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_for 1\""
1403 check_error "drawingarea1:rel_move_for 1 nnn Text" \
1404 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_for 1 nnn Text\""
1405 check_error "drawingarea1:rel_move_for 1 $BIG_STRING Text" \
1406 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_for 1 $BIG_STRING Text\""
1407 check_error "drawingarea1:rel_move_for nnn c Text" \
1408 "ignoring GtkDrawingArea command \"drawingarea1:rel_move_for nnn c Text\""
1409 check_error "drawingarea1:transform" \
1410 "ignoring GtkDrawingArea command \"drawingarea1:transform\""
1411 check_error "drawingarea1:transform " \
1412 "ignoring GtkDrawingArea command \"drawingarea1:transform \""
1413 check_error "drawingarea1:transform nnn" \
1414 "ignoring GtkDrawingArea command \"drawingarea1:transform nnn\""
1415 check_error "drawingarea1:transform $BIG_STRING" \
1416 "ignoring GtkDrawingArea command \"drawingarea1:transform $BIG_STRING\""
1417 check_error "drawingarea1:transform 1 2" \
1418 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2\""
1419 check_error "drawingarea1:transform 1 2 3" \
1420 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2 3\""
1421 check_error "drawingarea1:transform 1 2 3 4" \
1422 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2 3 4\""
1423 check_error "drawingarea1:transform 1 2 3 4 5" \
1424 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2 3 4 5\""
1425 check_error "drawingarea1:transform 1 2 3 4 5 6" \
1426 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2 3 4 5 6\""
1427 check_error "drawingarea1:transform 1 2 3 x 5 6 7" \
1428 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2 3 x 5 6 7\""
1429 check_error "drawingarea1:transform 1 2 3 4 5 6 7 8" \
1430 "ignoring GtkDrawingArea command \"drawingarea1:transform 1 2 3 4 5 6 7 8\""
1431 check_error "drawingarea1:translate" \
1432 "ignoring GtkDrawingArea command \"drawingarea1:translate\""
1433 check_error "drawingarea1:translate " \
1434 "ignoring GtkDrawingArea command \"drawingarea1:translate \""
1435 check_error "drawingarea1:translate nnn" \
1436 "ignoring GtkDrawingArea command \"drawingarea1:translate nnn\""
1437 check_error "drawingarea1:translate $BIG_STRING" \
1438 "ignoring GtkDrawingArea command \"drawingarea1:translate $BIG_STRING\""
1439 check_error "drawingarea1:translate 1" \
1440 "ignoring GtkDrawingArea command \"drawingarea1:translate 1\""
1441 check_error "drawingarea1:translate 1 2" \
1442 "ignoring GtkDrawingArea command \"drawingarea1:translate 1 2\""
1443 check_error "drawingarea1:translate nnn 2 3" \
1444 "ignoring GtkDrawingArea command \"drawingarea1:translate nnn 2 3\""
1445 check_error "drawingarea1:translate 1 x 3" \
1446 "ignoring GtkDrawingArea command \"drawingarea1:translate 1 x 3\""
1447 check_error "drawingarea1:translate 1 2 3 4" \
1448 "ignoring GtkDrawingArea command \"drawingarea1:translate 1 2 3 4\""
1449 check_error "drawingarea1:scale" \
1450 "ignoring GtkDrawingArea command \"drawingarea1:scale\""
1451 check_error "drawingarea1:scale " \
1452 "ignoring GtkDrawingArea command \"drawingarea1:scale \""
1453 check_error "drawingarea1:scale nnn" \
1454 "ignoring GtkDrawingArea command \"drawingarea1:scale nnn\""
1455 check_error "drawingarea1:scale $BIG_STRING" \
1456 "ignoring GtkDrawingArea command \"drawingarea1:scale $BIG_STRING\""
1457 check_error "drawingarea1:scale 1" \
1458 "ignoring GtkDrawingArea command \"drawingarea1:scale 1\""
1459 check_error "drawingarea1:scale 1 2" \
1460 "ignoring GtkDrawingArea command \"drawingarea1:scale 1 2\""
1461 check_error "drawingarea1:scale nnn 2 3" \
1462 "ignoring GtkDrawingArea command \"drawingarea1:scale nnn 2 3\""
1463 check_error "drawingarea1:scale 1 x 3" \
1464 "ignoring GtkDrawingArea command \"drawingarea1:scale 1 x 3\""
1465 check_error "drawingarea1:scale 1 2 3 4" \
1466 "ignoring GtkDrawingArea command \"drawingarea1:scale 1 2 3 4\""
1467 check_error "drawingarea1:rotate" \
1468 "ignoring GtkDrawingArea command \"drawingarea1:rotate\""
1469 check_error "drawingarea1:rotate " \
1470 "ignoring GtkDrawingArea command \"drawingarea1:rotate \""
1471 check_error "drawingarea1:rotate 1" \
1472 "ignoring GtkDrawingArea command \"drawingarea1:rotate 1\""
1473 check_error "drawingarea1:rotate nnn 2" \
1474 "ignoring GtkDrawingArea command \"drawingarea1:rotate nnn 2\""
1475 check_error "drawingarea1:rotate $BIG_STRING 2" \
1476 "ignoring GtkDrawingArea command \"drawingarea1:rotate $BIG_STRING 2\""
1477 check_error "drawingarea1:rotate 1 x" \
1478 "ignoring GtkDrawingArea command \"drawingarea1:rotate 1 x\""
1479 check_error "drawingarea1:rotate 1 10 10" \
1480 "ignoring GtkDrawingArea command \"drawingarea1:rotate 1 10 10\""
1481 check_error "drawingarea1:snapshot" \
1482 "ignoring GtkDrawingArea command \"drawingarea1:snapshot\""
1483 check_error "drawingarea1:snapshot " \
1484 "ignoring GtkDrawingArea command \"drawingarea1:snapshot \""
1485 check_error "drawingarea1:snapshot x" \
1486 "ignoring GtkDrawingArea command \"drawingarea1:snapshot x\""
1487 check_error "drawingarea1:snapshot $BIG_STRING" \
1488 "ignoring GtkDrawingArea command \"drawingarea1:snapshot $BIG_STRING\""
1489 check_error "drawingarea1:snapshot x.yz" \
1490 "ignoring GtkDrawingArea command \"drawingarea1:snapshot x.yz\""
1491 check_error "drawingarea1:snapshot x.pdf 2" \
1492 "ignoring GtkDrawingArea command \"drawingarea1:snapshot x.pdf 2\""
1493 check_error "drawingarea1:snapshot xsvg" \
1494 "ignoring GtkDrawingArea command \"drawingarea1:snapshot xsvg\""
1497 echo "-:main_quit" >$FIN
1498 check_rm $FIN
1501 if test $AUTOMATIC; then
1503 ## Logging to stderr
1504 read r 2< $FERR &
1505 ./pipeglade -i $FIN 2> $FERR -l - &
1506 # wait for $FIN to appear
1507 while test ! \( -e $FIN -a -e $FERR \); do :; done
1509 check_error "# Comment" \
1510 "########## ##### (New Pipeglade session) #####"
1511 check_error "" \
1512 "### (Idle) ###"
1513 check_error "-:main_quit" \
1514 " # Comment"
1515 check_rm $FIN
1516 rm $FERR
1520 #exit
1522 echo "
1523 # BATCH THREE
1525 # Tests for the principal functionality---valid actions leading to
1526 # correct results. Manual intervention is required. Instructions
1527 # will be given on the statusbar of the test GUI.
1528 ######################################################################
1531 mkfifo $FOUT
1533 # check nr_of_feedback_msgs user_instruction command expected_feedback1 expected_feedback2 ...
1534 check() {
1535 while test ! \( -e $FOUT \); do :; done
1536 # Flush stale pipeglade output
1537 while read -t .1 <$FOUT; do : ; done
1538 N=$1
1539 INSTRUCTION="$2"
1540 echo "$SEND ${3:0:300}"
1541 if test "$INSTRUCTION"; then
1542 echo -e "statusbar1:push_id =check= $INSTRUCTION" >$FIN
1544 while test ! \( -e $FIN \); do :; done
1545 echo -e "$3" >$FIN
1547 while (( i<$N )); do
1548 read r <$FOUT
1549 if test "$r" != ""; then
1550 if grep -qFe "${4:0:300}" <<< ${r:0:300}; then
1551 count_ok
1552 echo " $OK ($i) ${r:0:300}"
1553 else
1554 count_fail
1555 echo " $FAIL($i) ${r:0:300}"
1556 echo " $EXPECTED ${4:0:300}"
1558 shift
1559 (( i+=1 ))
1561 done
1562 if test "$INSTRUCTION"; then
1563 echo -e "statusbar1:pop_id =check=" >$FIN
1568 if test $AUTOMATIC; then
1570 # Being impervious to locale
1571 LC_ALL=de_DE.UTF-8 ./pipeglade -i $FIN -o $FOUT -O $ERR_FILE -b >/dev/null
1572 check 0 "" \
1573 "drawingarea1:transform 1 1.5 1 1 1 1 1"
1574 check 0 "" \
1575 "progressbar1:set_fraction .5"
1576 check 1 "" \
1577 "scale1:set_value .5" \
1578 "scale1:value 0.50"
1579 sleep .5
1580 check 0 "" \
1581 "_:main_quit"
1582 sleep .5
1583 check_cmd "(! grep -qe \"ignoring GtkDrawingArea command\" $ERR_FILE)"
1584 check_cmd "(! grep -qe \"ignoring GtkProgressBar command\" $ERR_FILE)"
1585 check_cmd "(! grep -qe \"ignoring GtkScale command\" $ERR_FILE)"
1586 check_rm $FIN
1587 check_rm $FOUT
1588 rm $ERR_FILE
1590 # Logging to stderr while redirecting stderr
1591 ./pipeglade -i $FIN -o $FOUT -O $ERR_FILE -l - -b >/dev/null
1592 check 0 "" \
1593 "# Comment"
1594 check 0 "" \
1595 "BlahBlah"
1596 check 0 "" \
1597 "_:main_quit"
1599 check_cmd "grep -qe \"# Comment\" $ERR_FILE"
1600 check_cmd "grep -qe \"ignoring command\" $ERR_FILE"
1601 check_rm $FIN
1604 # check if stdout remains line buffered even if directed to file
1605 ./pipeglade -i $FIN >$OUT_FILE &
1606 # wait for $FIN and $OUT_FILE to appear
1607 while test ! \( -e $FIN -a -e $OUT_FILE \); do :; done
1608 echo "button1:force" >$FIN
1609 check_cmd "grep -qe 'button1:clicked' $OUT_FILE"
1610 echo "_:main_quit" >$FIN
1611 rm -f $OUT_FILE
1614 ./pipeglade -i $FIN -o $FOUT -b >$PID_FILE
1615 check_cmd "kill `cat $PID_FILE /dev/null` 2&>/dev/null"
1616 rm $FIN $FOUT
1619 ./pipeglade --display ${DISPLAY-:0} -i $FIN -o $FOUT -b >/dev/null
1620 check 0 "" \
1621 "# checking --display $DISPLAY\n _:main_quit"
1622 check_rm $FIN
1623 check_rm $FOUT
1626 ./pipeglade -u simple_dialog.ui -i $FIN -o $FOUT -b >$PID_FILE
1627 check_cmd "ps -p `cat $PID_FILE` >/dev/null"
1628 check 1 "" \
1629 "main_apply:force" \
1630 "main_apply:clicked"
1631 check 0 "" \
1632 "main_cancel:force"
1633 check_rm $FIN
1634 check_rm $FOUT
1635 check_cmd "! ps -p `cat $PID_FILE` >/dev/null"
1636 rm $PID_FILE
1639 ./pipeglade -u simple_dialog.ui -i $FIN -o $FOUT -b >/dev/null
1640 check 1 "" \
1641 "button1:force" \
1642 "button1:clicked"
1643 check 1 "" \
1644 "main_ok:force" \
1645 "main_ok:clicked"
1646 check_rm $FIN
1647 check_rm $FOUT
1650 ./pipeglade -u simple_open.ui -i $FIN -o $FOUT >/dev/null &
1651 # wait for $FIN and $OUT_FILE to appear
1652 while test ! \( -e $FIN -a -e $FOUT \); do :; done
1653 check 3 "" \
1654 "main_apply:force" \
1655 "main_apply:clicked" \
1656 "main:file" \
1657 "main:folder"
1658 check 0 "" \
1659 "main_cancel:force"
1660 check_rm $FIN
1661 check_rm $FOUT
1664 ./pipeglade -u simple_open.ui -i $FIN -o $FOUT >/dev/null &
1665 # wait for $FIN and $OUT_FILE to appear
1666 while test ! \( -e $FIN -a -e $FOUT \); do :; done
1667 check 2 "" \
1668 "main_ok:force" \
1669 "main_ok:clicked" \
1670 "main:file"
1671 check_rm $FIN
1672 check_rm $FOUT
1675 mkfifo -m 777 $FIN
1676 mkfifo -m 777 $FOUT
1677 touch $ERR_FILE $LOG
1678 chmod 777 $ERR_FILE $LOG
1679 ./pipeglade -i $FIN -o $FOUT -O $ERR_FILE -l $LOG -b >/dev/null
1680 check_cmd "$STAT_CMD $FIN | grep -q '600$' 2>/dev/null"
1681 check_cmd "$STAT_CMD $FOUT | grep -q '600$' 2>/dev/null"
1682 check_cmd "$STAT_CMD $ERR_FILE | grep -q '600$' 2>/dev/null"
1683 check_cmd "$STAT_CMD $LOG | grep -q '600$' 2>/dev/null"
1684 echo -e "_:main_quit" > $FIN
1685 check_rm $FIN
1686 check_rm $FOUT
1687 rm -f $ERR_FILE $LOG
1690 ./pipeglade -i $FIN -o $FOUT -O $ERR_FILE -l $LOG -b >/dev/null
1691 check_cmd "$STAT_CMD $FIN | grep -q '600$' 2>/dev/null"
1692 check_cmd "$STAT_CMD $FOUT | grep -q '600$' 2>/dev/null"
1693 check_cmd "$STAT_CMD $ERR_FILE | grep -q '600$' 2>/dev/null"
1694 check_cmd "$STAT_CMD $LOG | grep -q '600$' 2>/dev/null"
1695 echo -e "_:main_quit" > $FIN
1696 check_rm $FIN
1697 check_rm $FOUT
1698 rm -f $ERR_FILE $LOG
1700 ./pipeglade -u clock.ui -i $FIN -o $FOUT -b
1701 check 0 "" \
1702 "main:resize 500 600\n main:move 100 100"
1703 check_cmd 'test $(xdotool search --name pipeglade-clock getwindowgeometry --shell | grep -c -e "X=...$" -e "Y=...$" -e "WIDTH=500" -e "HEIGHT=600") -eq 4'
1704 check 0 "" \
1705 "main:resize\n main:move 0 0"
1706 check_cmd 'test $(xdotool search --name pipeglade-clock getwindowgeometry --shell | grep -c -e "X=.$" -e "Y=.$" -e "WIDTH=440" -e "HEIGHT=440") -eq 4'
1707 check 0 "" \
1708 "main:fullscreen"
1709 check_cmd 'test $(xdotool search --name pipeglade-clock getwindowgeometry --shell | grep -c -e "WIDTH=..." -e "HEIGHT=...") -eq 2'
1710 check 0 "" \
1711 "main:unfullscreen"
1712 check_cmd 'test $(xdotool search --name pipeglade-clock getwindowgeometry --shell | grep -c -e "WIDTH=440" -e "HEIGHT=440") -eq 2'
1713 check 0 "" \
1714 "main:set_title Another Title!"
1715 check_cmd 'xdotool search --name "Another Title!" getwindowname | grep -qe "Another Title!"'
1716 check 0 "" \
1717 "_:main_quit"
1721 echo "#### # Initial line to check if -l option appends" >$LOG
1722 LC_NUMERIC=de_DE.UTF-8 ./pipeglade -i $FIN -o $FOUT -l $LOG -b >/dev/null
1725 if test $AUTOMATIC; then
1727 check 0 "" \
1728 "socket1:id"
1729 read XID <$FOUT
1730 XID=${XID/socket1:id }
1731 (sleep .5; ./pipeglade -u simple_dialog.ui -e $XID <<< "main_cancel:force") >/dev/null &
1732 check 2 "" \
1733 "" \
1734 "socket1:plug-added" \
1735 "socket1:plug-removed"
1736 (sleep .5; ./pipeglade -u simple_dialog.ui -e $XID <<< "main_cancel:force") >/dev/null &
1737 check 2 "" \
1738 "" \
1739 "socket1:plug-added" \
1740 "socket1:plug-removed"
1742 check 1 "" \
1743 "entry1:set_text FFFF" \
1744 "entry1:text FFFF"
1745 check 1 "" \
1746 "entry1:block 1\n entry1:set_text XXXXX\n entry1:block 0\n entry1:set_text EEEE" \
1747 "entry1:text EEEE"
1748 check 1 "" \
1749 "entry1:set_text $BIG_STRING" \
1750 "entry1:text $BIG_STRING"
1751 check 1 "" \
1752 "entry1:set_text" \
1753 "entry1:text"
1754 check 1 "" \
1755 "entry1:set_text FFFF" \
1756 "entry1:text FFFF"
1757 check 1 "" \
1758 "entry1:set_text " \
1759 "entry1:text"
1760 check 0 "" \
1761 "entry1:set_placeholder_text hint hint" # not much of a test
1762 check 1 "" \
1763 "entry1:set_text FFFF" \
1764 "entry1:text FFFF"
1765 check 1 "" \
1766 "entry1:set_text GGGG" \
1767 "entry1:text GGGG"
1768 check 1 "" \
1769 "entry1:force" \
1770 "entry1:text GGGG"
1771 check 1 "" \
1772 "spinbutton1:block 1\n spinbutton1:set_text 29.0\n spinbutton1:block 0\n spinbutton1:set_text 28.0\n" \
1773 "spinbutton1:text 28.0"
1774 check 2 "" \
1775 "spinbutton1:set_text 33.0\n spinbutton1:set_range 50 60\n" \
1776 "spinbutton1:text 33.0" \
1777 "spinbutton1:text 50.0"
1778 check 1 "" \
1779 "radiobutton2:block 1\n radiobutton2:set_active 1\n radiobutton2:block 0" \
1780 "radiobutton1:0"
1781 check 2 "" \
1782 "radiobutton1:set_active 1" \
1783 "radiobutton2:0" \
1784 "radiobutton1:1"
1785 check 1 "" \
1786 "switch1:set_active 1\n switch1:block 1\n switch1:set_active 0" \
1787 "switch1:1"
1788 check 1 "" \
1789 "switch1:set_active 1\n switch1:block 0\n switch1:set_active 0" \
1790 "switch1:0"
1791 check 0 "" \
1792 "progressbar1:set_text $BIG_STRING"
1793 check 0 "" \
1794 "progressbar1:set_text This Is A Progressbar."
1798 check 1 "" \
1799 "togglebutton1:set_active 1" \
1800 "togglebutton1:1"
1801 check 1 "" \
1802 "togglebutton1:block 1\n togglebutton1:set_active 0\n togglebutton1:block 0\n togglebutton1:set_active 1" \
1803 "togglebutton1:1"
1804 check 1 "" \
1805 "calendar1:block 1\n calendar1:select_date 1752-05-17\n calendar1:block 0\n calendar1:select_date 1752-05-18" \
1806 "calendar1:clicked 1752-05-18"
1807 check 1 "" \
1808 "calendar1:select_date 1752-03-29" \
1809 "calendar1:clicked 1752-03-29"
1811 if test $INTERACTIVE; then
1812 check 1 "Open what should now be named \"EXPANDER\" and click the \"button inside expander\"" \
1813 "expander1:set_expanded 0\n expander1:set_label EXPANDER" \
1814 "button6:clicked"
1815 check 0 "" \
1816 "expander1:set_expanded 0"
1819 check 12 "" \
1820 "treeview2:set_visible 0\n treeview1:set 2 0 1\n treeview1:set 2 1 -30000\n treeview1:set 2 2 66\n treeview1:set 2 3 -2000000000\n treeview1:set 2 4 4000000000\n treeview1:set 2 5 -2000000000\n treeview1:set 2 6 4000000000\n treeview1:set 2 7 3.141\n treeview1:set 2 8 3.141\n treeview1:set 2 9 TEXT\n treeview1:set_cursor 2" \
1821 "treeview1:clicked" \
1822 "treeview1:gboolean 2 0 1" \
1823 "treeview1:gint 2 1 -30000" \
1824 "treeview1:guint 2 2 66" \
1825 "treeview1:glong 2 3 -2000000000" \
1826 "treeview1:glong 2 4 4000000000" \
1827 "treeview1:glong 2 5 -2000000000" \
1828 "treeview1:gulong 2 6 4000000000" \
1829 "treeview1:gfloat 2 7 3.141000" \
1830 "treeview1:gdouble 2 8 3.141000" \
1831 "treeview1:gchararray 2 9 TEXT" \
1832 "treeview1:gchararray 2 10 cyan"
1833 mkdir -p $DIR
1834 check 0 "" \
1835 "treeview1:save $DIR/$FILE1"
1836 check 0 "" \
1837 "treeview1:save $DIR/$FILE1.bak"
1838 check 1 "" \
1839 "treeview1:set_cursor" \
1840 "treeview1:clicked"
1841 check 12 "" \
1842 "treeview1:insert_row 0\n treeview1:insert_row 2\n treeview1:set_cursor 4" \
1843 "treeview1:clicked" \
1844 "treeview1:gboolean 4 0 1" \
1845 "treeview1:gint 4 1 -30000" \
1846 "treeview1:guint 4 2 66" \
1847 "treeview1:glong 4 3 -2000000000" \
1848 "treeview1:glong 4 4 4000000000" \
1849 "treeview1:glong 4 5 -2000000000" \
1850 "treeview1:gulong 4 6 4000000000" \
1851 "treeview1:gfloat 4 7 3.141000" \
1852 "treeview1:gdouble 4 8 3.141000" \
1853 "treeview1:gchararray 4 9 TEXT" \
1854 "treeview1:gchararray 4 10 cyan"
1855 check 1 "" \
1856 "treeview1:set_cursor" \
1857 "treeview1:clicked"
1858 check 12 "" \
1859 "treeview1:move_row 4 0\n treeview1:set_cursor 0" \
1860 "treeview1:clicked" \
1861 "treeview1:gboolean 0 0 1" \
1862 "treeview1:gint 0 1 -30000" \
1863 "treeview1:guint 0 2 66" \
1864 "treeview1:glong 0 3 -2000000000" \
1865 "treeview1:glong 0 4 4000000000" \
1866 "treeview1:glong 0 5 -2000000000" \
1867 "treeview1:gulong 0 6 4000000000" \
1868 "treeview1:gfloat 0 7 3.141000" \
1869 "treeview1:gdouble 0 8 3.141000" \
1870 "treeview1:gchararray 0 9 TEXT" \
1871 "treeview1:gchararray 0 10 cyan"
1872 check 1 "" \
1873 "treeview1:set_cursor" \
1874 "treeview1:clicked"
1875 check 12 "" \
1876 "treeview1:move_row 0 2\n treeview1:set_cursor 1" \
1877 "treeview1:clicked" \
1878 "treeview1:gboolean 1 0 1" \
1879 "treeview1:gint 1 1 -30000" \
1880 "treeview1:guint 1 2 66" \
1881 "treeview1:glong 1 3 -2000000000" \
1882 "treeview1:glong 1 4 4000000000" \
1883 "treeview1:glong 1 5 -2000000000" \
1884 "treeview1:gulong 1 6 4000000000" \
1885 "treeview1:gfloat 1 7 3.141000" \
1886 "treeview1:gdouble 1 8 3.141000" \
1887 "treeview1:gchararray 1 9 TEXT" \
1888 "treeview1:gchararray 1 10 cyan"
1889 check 1 "" \
1890 "treeview1:set_cursor" \
1891 "treeview1:clicked"
1892 check 12 "" \
1893 "treeview1:insert_row end\n treeview1:move_row 1 end\n treeview1:set_cursor 6" \
1894 "treeview1:clicked" \
1895 "treeview1:gboolean 6 0 1" \
1896 "treeview1:gint 6 1 -30000" \
1897 "treeview1:guint 6 2 66" \
1898 "treeview1:glong 6 3 -2000000000" \
1899 "treeview1:glong 6 4 4000000000" \
1900 "treeview1:glong 6 5 -2000000000" \
1901 "treeview1:gulong 6 6 4000000000" \
1902 "treeview1:gfloat 6 7 3.141000" \
1903 "treeview1:gdouble 6 8 3.141000" \
1904 "treeview1:gchararray 6 9 TEXT" \
1905 "treeview1:gchararray 6 10 cyan"
1906 check 1 "" \
1907 "treeview1:set_cursor" \
1908 "treeview1:clicked"
1909 check 12 "" \
1910 "treeview1:remove_row 0\n treeview1:remove_row 2\n treeview1:set_cursor 4" \
1911 "treeview1:clicked" \
1912 "treeview1:gboolean 4 0 1" \
1913 "treeview1:gint 4 1 -30000" \
1914 "treeview1:guint 4 2 66" \
1915 "treeview1:glong 4 3 -2000000000" \
1916 "treeview1:glong 4 4 4000000000" \
1917 "treeview1:glong 4 5 -2000000000" \
1918 "treeview1:gulong 4 6 4000000000" \
1919 "treeview1:gfloat 4 7 3.141000" \
1920 "treeview1:gdouble 4 8 3.141000" \
1921 "treeview1:gchararray 4 9 TEXT" \
1922 "treeview1:gchararray 4 10 cyan"
1923 check 1 "" \
1924 "treeview1:set_cursor" \
1925 "treeview1:clicked"
1926 check 12 "" \
1927 "treeview1:move_row 0 end\n treeview1:set_cursor 3" \
1928 "treeview1:clicked" \
1929 "treeview1:gboolean 3 0 1" \
1930 "treeview1:gint 3 1 -30000" \
1931 "treeview1:guint 3 2 66" \
1932 "treeview1:glong 3 3 -2000000000" \
1933 "treeview1:glong 3 4 4000000000" \
1934 "treeview1:glong 3 5 -2000000000" \
1935 "treeview1:gulong 3 6 4000000000" \
1936 "treeview1:gfloat 3 7 3.141000" \
1937 "treeview1:gdouble 3 8 3.141000" \
1938 "treeview1:gchararray 3 9 TEXT" \
1939 "treeview1:gchararray 3 10 cyan"
1940 check 24 "" \
1941 "treeview1:remove_row 3" \
1942 "treeview1:clicked" \
1943 "treeview1:gboolean 3 0 0" \
1944 "treeview1:gint 3 1 0" \
1945 "treeview1:guint 3 2 0" \
1946 "treeview1:glong 3 3 0" \
1947 "treeview1:glong 3 4 0" \
1948 "treeview1:glong 3 5 0" \
1949 "treeview1:gulong 3 6 0" \
1950 "treeview1:gfloat 3 7 0.000000" \
1951 "treeview1:gdouble 3 8 0.000000" \
1952 "treeview1:gchararray 3 9 abc" \
1953 "treeview1:gchararray 3 10 magenta" \
1954 "treeview1:clicked" \
1955 "treeview1:gboolean 3 0 0" \
1956 "treeview1:gint 3 1 0" \
1957 "treeview1:guint 3 2 0" \
1958 "treeview1:glong 3 3 0" \
1959 "treeview1:glong 3 4 0" \
1960 "treeview1:glong 3 5 0" \
1961 "treeview1:gulong 3 6 0" \
1962 "treeview1:gfloat 3 7 0.000000" \
1963 "treeview1:gdouble 3 8 0.000000" \
1964 "treeview1:gchararray 3 9 abc" \
1965 "treeview1:gchararray 3 10 magenta"
1967 if test $INTERACTIVE; then
1968 check 1 "Click column col4 in the lowest line visible in the scrolled area and type 444 <Enter> (scroll)" \
1969 "treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:insert_row 2\n treeview1:scroll 24 0" \
1970 "treeview1:gint 24 1 444"
1971 check 12 "Click column col3 in the highest line visible in the scrolled area (scroll)" \
1972 "treeview1:scroll 1 0" \
1973 "treeview1:clicked" \
1974 "treeview1:gboolean 1 0 1" \
1975 "treeview1:gint 1 1 3" \
1976 "treeview1:guint 1 2 0" \
1977 "treeview1:glong 1 3 0" \
1978 "treeview1:glong 1 4 0" \
1979 "treeview1:glong 1 5 0" \
1980 "treeview1:gulong 1 6 0" \
1981 "treeview1:gfloat 1 7 0.000000" \
1982 "treeview1:gdouble 1 8 0.000000" \
1983 "treeview1:gchararray 1 9 jkl" \
1984 "treeview1:gchararray 1 10 green"
1986 check 1 "Click the header of column \"col3\"" \
1987 "" \
1988 "treeviewcolumn3:clicked"
1991 check 2 "" \
1992 "treeview1:clear\n button1:force" \
1993 "treeview1:clicked" \
1994 "button1:clicked"
1996 check 12 "" \
1997 "treeview2:set_visible 1\n treeview2:insert_row end\n treeview2:insert_row 0 as_child\n treeview2:insert_row 0:0 as_child\n treeview2:insert_row 0:0\n treeview2:set 100:1:0 0 1\n treeview2:set 100:1:0 1 -30000\n treeview2:set 100:1:0 2 33\n treeview2:set 100:1:0 3 -2000000000\n treeview2:set 100:1:0 4 4000000000\n treeview2:set 100:1:0 5 -2000000000\n treeview2:set 100:1:0 6 4000000000\n treeview2:set 100:1:0 7 3.141\n treeview2:set 100:1:0 8 3.141\n treeview2:set 100:1:0 9 TEXT\n treeview2:expand_all\n treeview2:set_cursor 100:1:0" \
1998 "treeview2:clicked" \
1999 "treeview2:gboolean 100:1:0 0 1" \
2000 "treeview2:gint 100:1:0 1 -30000" \
2001 "treeview2:guint 100:1:0 2 33" \
2002 "treeview2:glong 100:1:0 3 -2000000000" \
2003 "treeview2:glong 100:1:0 4 4000000000" \
2004 "treeview2:glong 100:1:0 5 -2000000000" \
2005 "treeview2:gulong 100:1:0 6 4000000000" \
2006 "treeview2:gfloat 100:1:0 7 3.141000" \
2007 "treeview2:gdouble 100:1:0 8 3.141000" \
2008 "treeview2:gchararray 100:1:0 9 TEXT" \
2009 "treeview2:gchararray 100:1:0 10"
2010 check 1 "" \
2011 "treeview2:set_cursor" \
2012 "treeview2:clicked"
2013 check 12 "" \
2014 "treeview2:insert_row 0\n treeview2:insert_row 0\n treeview2:set 102:1 3 876543210\n treeview2:set 102 3 448822\n treeview2:collapse\n treeview2:set_cursor 102" \
2015 "treeview2:clicked" \
2016 "treeview2:gboolean 102 0 0" \
2017 "treeview2:gint 102 1 0" \
2018 "treeview2:guint 102 2 0" \
2019 "treeview2:glong 102 3 448822" \
2020 "treeview2:glong 102 4 0" \
2021 "treeview2:glong 102 5 0" \
2022 "treeview2:gulong 102 6 0" \
2023 "treeview2:gfloat 102 7 0.000000" \
2024 "treeview2:gdouble 102 8 0.000000" \
2025 "treeview2:gchararray 102 9" \
2026 "treeview2:gchararray 102 10"
2027 check 1 "" \
2028 "treeview2:set_cursor" \
2029 "treeview2:clicked"
2030 check 0 "" \
2031 "treeview2:save $DIR/$FILE2"
2032 check 0 "" \
2033 "treeview2:save $DIR/$FILE2.bak"
2034 check 12 "" \
2035 "treeview2:insert_row 0\n treeview2:collapse\n treeview2:set_cursor 103" \
2036 "treeview2:clicked" \
2037 "treeview2:gboolean 103 0 0" \
2038 "treeview2:gint 103 1 0" \
2039 "treeview2:guint 103 2 0" \
2040 "treeview2:glong 103 3 448822" \
2041 "treeview2:glong 103 4 0" \
2042 "treeview2:glong 103 5 0" \
2043 "treeview2:gulong 103 6 0" \
2044 "treeview2:gfloat 103 7 0.000000" \
2045 "treeview2:gdouble 103 8 0.000000" \
2046 "treeview2:gchararray 103 9" \
2047 "treeview2:gchararray 103 10"
2048 check 1 "" \
2049 "treeview2:set_cursor" \
2050 "treeview2:clicked"
2052 if test $INTERACTIVE; then
2053 check 12 "Click the lowest line visible in the scrolled area (1)" \
2054 "treeview2:expand_all 103\n treeview2:scroll 103:1:0 0" \
2055 "treeview2:clicked" \
2056 "treeview2:gboolean 103:1:0 0 1" \
2057 "treeview2:gint 103:1:0 1 -30000" \
2058 "treeview2:guint 103:1:0 2 33" \
2059 "treeview2:glong 103:1:0 3 -2000000000" \
2060 "treeview2:glong 103:1:0 4 4000000000" \
2061 "treeview2:glong 103:1:0 5 -2000000000" \
2062 "treeview2:gulong 103:1:0 6 4000000000" \
2063 "treeview2:gfloat 103:1:0 7 3.141000" \
2064 "treeview2:gdouble 103:1:0 8 3.141000" \
2065 "treeview2:gchararray 103:1:0 9 TEXT" \
2066 "treeview2:gchararray 103:1:0 10"
2067 check 1 "" \
2068 "treeview2:set_cursor" \
2069 "treeview2:clicked"
2070 check 12 "Click the lowest visible line (2)" \
2071 "treeview2:collapse\n treeview2:expand 103\n treeview2:scroll 103:1 0" \
2072 "treeview2:clicked" \
2073 "treeview2:gboolean 103:1 0 0" \
2074 "treeview2:gint 103:1 1 0" \
2075 "treeview2:guint 103:1 2 0" \
2076 "treeview2:glong 103:1 3 876543210" \
2077 "treeview2:glong 103:1 4 0" \
2078 "treeview2:glong 103:1 5 0" \
2079 "treeview2:gulong 103:1 6 0" \
2080 "treeview2:gfloat 103:1 7 0.000000" \
2081 "treeview2:gdouble 103:1 8 0.000000" \
2082 "treeview2:gchararray 103:1 9" \
2083 "treeview2:gchararray 103:1 10"
2084 check 1 "" \
2085 "treeview2:set_cursor" \
2086 "treeview2:clicked"
2087 check 12 "Click the lowest visible line (3)" \
2088 "treeview2:collapse\n treeview2:expand_all\n treeview2:scroll 103:1:0 0" \
2089 "treeview2:clicked" \
2090 "treeview2:gboolean 103:1:0 0 1" \
2091 "treeview2:gint 103:1:0 1 -30000" \
2092 "treeview2:guint 103:1:0 2 33" \
2093 "treeview2:glong 103:1:0 3 -2000000000" \
2094 "treeview2:glong 103:1:0 4 4000000000" \
2095 "treeview2:glong 103:1:0 5 -2000000000" \
2096 "treeview2:gulong 103:1:0 6 4000000000" \
2097 "treeview2:gfloat 103:1:0 7 3.141000" \
2098 "treeview2:gdouble 103:1:0 8 3.141000" \
2099 "treeview2:gchararray 103:1:0 9 TEXT" \
2100 "treeview2:gchararray 103:1:0 10"
2101 check 1 "" \
2102 "treeview2:set_cursor" \
2103 "treeview2:clicked"
2104 check 12 "Click the lowest visible line (4)" \
2105 "treeview2:expand_all\n treeview2:collapse 103:1\n treeview2:scroll 103:1 0" \
2106 "treeview2:clicked" \
2107 "treeview2:gboolean 103:1 0 0" \
2108 "treeview2:gint 103:1 1 0" \
2109 "treeview2:guint 103:1 2 0" \
2110 "treeview2:glong 103:1 3 876543210" \
2111 "treeview2:glong 103:1 4 0" \
2112 "treeview2:glong 103:1 5 0" \
2113 "treeview2:gulong 103:1 6 0" \
2114 "treeview2:gfloat 103:1 7 0.000000" \
2115 "treeview2:gdouble 103:1 8 0.000000" \
2116 "treeview2:gchararray 103:1 9" \
2117 "treeview2:gchararray 103:1 10"
2118 check 1 "" \
2119 "treeview2:set_cursor" \
2120 "treeview2:clicked"
2122 check 1 "Click the header of column \"col23\"" \
2123 "" \
2124 "treeviewcolumn23:clicked"
2128 if test $AUTOMATIC; then
2130 check 12 "" \
2131 "treeview1:clear\n treeview1:set 1 9 $BIG_STRING\n treeview1:set_cursor 1" \
2132 "treeview1:clicked" \
2133 "treeview1:gboolean 1 0 0" \
2134 "treeview1:gint 1 1 0" \
2135 "treeview1:guint 1 2 0" \
2136 "treeview1:glong 1 3 0" \
2137 "treeview1:glong 1 4 0" \
2138 "treeview1:glong 1 5 0" \
2139 "treeview1:gulong 1 6 0" \
2140 "treeview1:gfloat 1 7 0.000000" \
2141 "treeview1:gdouble 1 8 0.000000" \
2142 "treeview1:gchararray 1 9 $BIG_STRING" \
2143 "treeview1:gchararray 1 10"
2144 check 12 "" \
2145 "treeview1:clear\n treeview1:set 1 9 ABC\\\\nDEF\\\\nGHI\n treeview1:set_cursor 1" \
2146 "treeview1:clicked" \
2147 "treeview1:clicked" \
2148 "treeview1:gboolean 1 0 0" \
2149 "treeview1:gint 1 1 0" \
2150 "treeview1:guint 1 2 0" \
2151 "treeview1:glong 1 3 0" \
2152 "treeview1:glong 1 4 0" \
2153 "treeview1:glong 1 5 0" \
2154 "treeview1:gulong 1 6 0" \
2155 "treeview1:gfloat 1 7 0.000000" \
2156 "treeview1:gdouble 1 8 0.000000" \
2157 "treeview1:gchararray 1 9 ABCnDEFnGHI" \
2158 "treeview1:gchararray 1 10"
2159 check 0 "" \
2160 "treeview1:clear\n treeview2:clear"
2161 check 0 "" \
2162 "_:load $DIR/$FILE1"
2163 rm -f $DIR/$FILE1
2164 sleep .5
2165 check 1 "" \
2166 "treeview1:save $DIR/$FILE1\n button1:force" \
2167 "button1:clicked"
2168 check_cmd "cmp $DIR/$FILE1 $DIR/$FILE1.bak"
2169 check 0 "" \
2170 "treeview1:clear\n treeview2:clear"
2171 check 0 "" \
2172 "_:load $DIR/$FILE2"
2173 sleep .5
2174 rm -f $DIR/$FILE2
2175 sleep .5
2176 check 1 "" \
2177 "treeview2:save $DIR/$FILE2\n button1:force" \
2178 "button1:clicked"
2179 check_cmd "cmp $DIR/$FILE2 $DIR/$FILE2.bak"
2180 cat >$DIR/$FILE3 <<< "_:load $DIR/$FILE1.bak"
2181 cat >>$DIR/$FILE3 <<< "_:load $DIR/$FILE2.bak"
2182 cat >$DIR/$FILE4 <<< "_:load $DIR/$FILE3"
2183 cat >$DIR/$FILE5 <<< "_:load $DIR/$FILE4"
2184 cat >$DIR/$FILE6 <<< "_:load $DIR/$FILE5"
2185 rm -f $DIR/$FILE1 $DIR/$FILE2
2186 sleep .5
2187 check 0 "" \
2188 "treeview1:clear\n treeview2:clear"
2189 check 0 "" \
2190 "_:load $DIR/$FILE6"
2191 rm -f $DIR/$FILE1 $DIR/$FILE2
2192 sleep .5
2193 check 1 "" \
2194 "treeview1:save $DIR/$FILE1\n treeview2:save $DIR/$FILE2\n button1:force" \
2195 "button1:clicked"
2196 check_cmd "cmp $DIR/$FILE1 $DIR/$FILE1.bak"
2197 check_cmd "cmp $DIR/$FILE2 $DIR/$FILE2.bak"
2198 rm -rf $DIR
2199 check 0 "" \
2200 "treeview1:set 100 9 XXXYYY"
2201 check 0 "" \
2202 "treeview2:clear\n treeview2:set 2 0 1"
2204 check 0 "" \
2205 "notebook1:set_current_page 2"
2206 check 1 "" \
2207 "nonexistent_send_text:force" \
2208 "nonexistent_send_text:clicked"
2209 check 1 "" \
2210 "nonexistent_send_selection:force" \
2211 "nonexistent_send_selection:clicked"
2212 check 1 "" \
2213 "nonexistent_ok:force" \
2214 "nonexistent_ok:clicked"
2215 check 1 "" \
2216 "nonexistent_apply:force" \
2217 "nonexistent_apply:clicked"
2218 check 1 "" \
2219 "nonexistent_cancel:force" \
2220 "nonexistent_cancel:clicked"
2221 check 0 "" \
2222 "notebook1:set_current_page 1"
2223 check 1 "" \
2224 "textview1_send_text:force" \
2225 "textview1_send_text:text some textnetcn"
2226 check 1 "" \
2227 "textview1:place_cursor 5\n textview1:insert_at_cursor MORE \n textview1_send_text:force" \
2228 "textview1_send_text:text some MORE textnetcn"
2229 check 1 "" \
2230 "textview1:place_cursor_at_line 1\n textview1:insert_at_cursor ETC \n textview1_send_text:force" \
2231 "textview1_send_text:text some MORE textnETC etcn"
2232 mkdir -p $DIR
2233 check 1 "" \
2234 "textview1:save $DIR/$FILE1\n button1:force" \
2235 "button1:clicked"
2237 while (( i<2000 )); do
2238 (( i+=1 ))
2239 cat $DIR/$FILE1 >> $DIR/$FILE2
2240 done
2242 while (( i<2000 )); do
2243 (( i+=1 ))
2244 echo "textview2:insert_at_cursor ##### THIS IS LINE $i.\\n" >> $DIR/$FILE3
2245 done
2246 check 0 "" \
2247 "_:load $DIR/$FILE2"
2248 check 0 "" \
2249 "textview1:save $DIR/$FILE1"
2250 check 0 "" \
2251 "textview1:save $DIR/$FILE1"
2252 check 0 "" \
2253 "textview1:delete"
2254 check 0 "" \
2255 "textview2:delete"
2256 check 0 "" \
2257 "_:load $DIR/$FILE3"
2258 check 0 "" \
2259 "_:load $DIR/$FILE1"
2260 check 0 "" \
2261 "textview2:save $DIR/$FILE3"
2262 check 1 "" \
2263 "textview1:save $DIR/$FILE2\n button1:force" \
2264 "button1:clicked"
2265 check_cmd "cmp $DIR/$FILE1 $DIR/$FILE2"
2266 echo "textview1:insert_at_cursor I'm a text containing backslashes:\\nONE\\\\\nTWO\\\\\\\\\\nTHREE\\\\\\\\\\\\\\nEnd" > $DIR/$FILE1
2267 check 0 "" \
2268 "textview1:delete\n _:load $DIR/$FILE1"
2269 check 1 "" \
2270 "textview1:save $DIR/$FILE1\n textview1:save $DIR/$FILE2\n textview1:delete\n _:load $DIR/$FILE1\n button1:force" \
2271 "button1:clicked"
2272 rm $DIR/$FILE1
2273 sleep .5
2274 check 1 "" \
2275 "textview1:save $DIR/$FILE1\n button1:force" \
2276 "button1:clicked"
2277 check_cmd "test 96 = `wc -c $DIR/$FILE1 | awk '{print $1}'`"
2278 check_cmd "cmp $DIR/$FILE1 $DIR/$FILE2"
2282 check 1 "" \
2283 "textview1:delete\n textview1_send_text:force" \
2284 "textview1_send_text:text"
2286 if test $INTERACTIVE; then
2288 check 1 "Highlight the lowest visible character and press \"send_selection\"" \
2289 "textview1:place_cursor_at_line 1 \ntextview1:insert_at_cursor A\\\\nB\\\\nC\\\\nD\\\\nE\\\\nF\\\\nG\\\\nH\\\\nI\\\\nJ\\\\nK\\\\nL\\\\nM\\\\nN\\\\nO\\\\nP\\\\nQ\\\\nR\\\\nS\\\\nT\\\\nU\\\\nV\\\\nW\\\\nX\\\\nY\\\\nZ\\\\na\\\\nb\\\\nc\\\\nd\\\\ne\\\\nf\\\\ng\\\\nh\\\\ni\\\\nj\\\\nk\\\\nl\\\\nm\\\\nn\\\\no\\\\np\\\\nq\\\\nr\\\\ns\\\\nt\\\\nu\\\\nv\\\\nw\\\\nx\\\\ny\\\\nz \n textview1:place_cursor_at_line 46 \n textview1:scroll_to_cursor\n notebook1:set_current_page 1" \
2290 "textview1_send_selection:text u"
2291 check 1 "Again, highlight the lowest visible character and press \"send_selection\"" \
2292 "textview1:place_cursor end\n textview1:scroll_to_cursor" \
2293 "textview1_send_selection:text z"
2294 check 1 "Highlight the highest visible character and press \"send_selection\"" \
2295 "textview1:place_cursor 0 \n textview1:scroll_to_cursor" \
2296 "textview1_send_selection:text A"
2300 if test $AUTOMATIC; then
2301 check 1 "" \
2302 "treeview2:set 100:10:5 2 8888888\n treeview2:save $DIR/$FILE1\n textview2:save $DIR/$FILE2\n button1:force" \
2303 "button1:clicked"
2304 cp $DIR/$FILE1 $DIR/$FILE4
2305 check_cmd "cmp $DIR/$FILE2 $DIR/$FILE3"
2306 check 1 "" \
2307 "treeview2:clear\n textview2:delete\n _:load $DIR/$FILE1\n _:load $DIR/$FILE2\n button1:force" \
2308 "button1:clicked"
2309 rm $DIR/$FILE1 $DIR/$FILE2
2310 sleep .5
2311 check 1 "" \
2312 "treeview2:save $DIR/$FILE1\n textview2:save $DIR/$FILE2\n button1:force" \
2313 "button1:clicked"
2314 check_cmd "cmp $DIR/$FILE1 $DIR/$FILE4"
2315 check_cmd "cmp $DIR/$FILE2 $DIR/$FILE3"
2316 # rm -rf $DIR
2317 sleep .5
2318 check 2 "" \
2319 "scale1:set_value 10\n scale1:set_increments 5 20\n scale1:force" \
2320 "scale1:value 10.000000" \
2321 "scale1:value 10.000000"
2322 check 2 "" \
2323 "scale1:block 1\n scale1:set_range 20 22\n scale1:set_value 21\n scale1:block 0\n scale1:set_value 10\n scale1:set_value 100" \
2324 "scale1:value 20.000000" \
2325 "scale1:value 22.000000"
2326 check 1 "" \
2327 "scale1:set_fill_level\n scale1:set_fill_level 20.5\n scale1:set_value 21.3" \
2328 "scale1:value 21.300000"
2329 check 6 "" \
2330 "open_dialog:set_filename q.png\n file:force\n open_dialog_invoke:force\n open_dialog_apply:force\n open_dialog_ok:force" \
2331 "file:active _File" \
2332 "open_dialog_apply:clicked" \
2333 "open_dialog:file $PWD/q.png" \
2334 "open_dialog:folder $PWD" \
2335 "open_dialog_ok:clicked" \
2336 "open_dialog:file $PWD/q.png" \
2337 "open_dialog:folder $PWD"
2338 check 2 "" \
2339 "file:force\n open_dialog_invoke:force\n open_dialog_cancel:force" \
2340 "file:active _File" \
2341 "open_dialog_cancel:clicked"
2342 check 3 "" \
2343 "save_as_dialog:set_current_name /somewhere/crazy_idea\n file:force\n save_as_dialog_invoke:force\n save_as_dialog_ok:force" \
2344 "file:active _File" \
2345 "save_as_dialog_ok:clicked" \
2346 "save_as_dialog:file /somewhere/crazy_idea" \
2347 "save_as_dialog:folder"
2348 check 1 "" \
2349 "nonexistent_invoke:force" \
2350 "nonexistent_invoke:active nonexistent"
2352 # _:load
2353 mkdir -p $DIR
2354 for i in $WEIRD_PATHS; do
2355 cat >$i <<< "entry1:set_text RsT${i}UVwX"
2356 done
2357 for i in $WEIRD_PATHS; do
2358 check 1 "" \
2359 "_:load $i" \
2360 "entry1:text RsT${i}UVwX"
2361 rm -f $i
2362 done
2366 if test $INTERACTIVE; then
2368 check 1 "Press the \"button\" which should now be renamed \"OK\"" \
2369 "button1:set_label OK" \
2370 "button1:clicked"
2371 check 1 "Press the \"togglebutton\" which should now be renamed \"on/off\"" \
2372 "togglebutton1:set_label on/off" \
2373 "togglebutton1:0"
2374 check 1 "" \
2375 "togglebutton1:force" \
2376 "togglebutton1:1"
2377 check 1 "Press the \"checkbutton\" which should now be renamed \"REGISTER\"" \
2378 "checkbutton1:set_label REGISTER" \
2379 "checkbutton1:1"
2380 check 1 "" \
2381 "checkbutton1:force" \
2382 "checkbutton1:0"
2383 check 2 "Press the \"radiobutton\" which should now be renamed \"RADIO\"" \
2384 "radiobutton2:set_label RADIO" \
2385 "radiobutton1:0" \
2386 "radiobutton2:1"
2387 check 2 "" \
2388 "radiobutton1:force" \
2389 "radiobutton2:0" \
2390 "radiobutton1:1"
2391 check 1 "Click the widget whose label font is now Bold Italic 20" \
2392 "switch1:style font:Bold Italic 20" \
2393 "switch1:1"
2394 check 1 "Click the widget whose label has turned red" \
2395 "switch1:style color:red" \
2396 "switch1:0"
2397 check 1 "Click the widget whose background has turned yellow" \
2398 "checkbutton1:style background-color:yellow" \
2399 "checkbutton1:1"
2400 check 1 "Press \"OK\" if font and colors changed in previous steps are back to normal\n switch1:style" \
2401 "checkbutton1:style" \
2402 "button1:clicked"
2403 check 1 "" \
2404 "switch1:force" \
2405 "switch1:1"
2406 check 1 "Press \"OK\" if the \"lorem ipsum dolor ...\" text inside \"frame1\" now reads \"LABEL\"" \
2407 "label1:set_text LABEL" \
2408 "button1:clicked"
2409 check 1 "Press \"OK\" if the label of the frame around \"LABEL\" now reads \"LOREM IPSUM\"" \
2410 "frame1:set_label LOREM IPSUM" \
2411 "button1:clicked"
2412 check 1 "Press \"OK\" if the green dot has turned red" \
2413 "image1:set_from_icon_name gtk-no" \
2414 "button1:clicked"
2415 check 1 "Press \"OK\" if the red dot has turned into a green \"Q\"" \
2416 "image1:set_from_file q.png" \
2417 "button1:clicked"
2418 check 1 "Select \"FIRST\" from the combobox" \
2419 "comboboxtext1:prepend_text FIRST" \
2420 "comboboxtext1_entry:text FIRST"
2421 check 1 "Select \"LAST\" from the combobox" \
2422 "comboboxtext1:append_text LAST" \
2423 "comboboxtext1_entry:text LAST"
2424 check 1 "Select \"AVERAGE\" from the combobox" \
2425 "comboboxtext1:insert_text 3 AVERAGE" \
2426 "comboboxtext1_entry:text AVERAGE"
2427 check 1 "Select the second entry from the combobox" \
2428 "comboboxtext1:remove 0" \
2429 "comboboxtext1_entry:text def"
2430 check 2 "Left-click the \"+\" of the spinbutton" \
2431 "spinbutton1:set_range 0 100\n spinbutton1:set_text 33" \
2432 "spinbutton1:text 33.00" \
2433 "spinbutton1:text 34.00"
2434 check 1 "Left-click the \"+\" of the spinbutton again" \
2435 "spinbutton1:set_increments 2 4" \
2436 "spinbutton1:text 36.00"
2437 check 1 "Middle-click the \"+\" of the spinbutton" \
2438 "" \
2439 "spinbutton1:text 40.00"
2440 check 1 "" \
2441 "spinbutton1:force" \
2442 "spinbutton1:text 40.00"
2443 check 1 "Using the file chooser button (now labelled \"etc\"), select \"File System\" (= \"/\")" \
2444 "filechooserbutton1:set_filename /etc/" \
2445 "filechooserbutton1:file /"
2446 check 1 "" \
2447 "filechooserbutton1:force" \
2448 "filechooserbutton1:file /"
2449 check 1 "Click \"Select\"\n fontbutton1:set_font_name Sans Bold 40" \
2450 "fontbutton1:force" \
2451 "fontbutton1:font Sans Bold 40"
2452 check 1 "Click \"Select\" (1)\n colorbutton1:set_color yellow" \
2453 "colorbutton1:force" \
2454 "colorbutton1:color rgb(255,255,0)"
2455 check 1 "Click \"Select\" (2)\n colorbutton1:set_color rgb(0,255,0)" \
2456 "colorbutton1:force" \
2457 "colorbutton1:color rgb(0,255,0)"
2458 check 1 "Click \"Select\" (3)\n colorbutton1:set_color #00f" \
2459 "colorbutton1:force" \
2460 "colorbutton1:color rgb(0,0,255)"
2461 check 1 "Click \"Select\" (4)\n colorbutton1:set_color #ffff00000000" \
2462 "colorbutton1:force" \
2463 "colorbutton1:color rgb(255,0,0)"
2464 check 1 "Click \"Select\" (5)\n colorbutton1:set_color rgba(0,255,0,.5)" \
2465 "colorbutton1:force" \
2466 "colorbutton1:color rgba(0,255,0,0.5)"
2467 check 1 "Close the dialog by hitting Escape" \
2468 "printdialog:print nonexistent.ps" \
2469 "printdialog:closed"
2470 check 1 "Press \"OK\" if both 1752-03-13 and 1752-03-14 are marked on the calendar" \
2471 "calendar1:mark_day 13\n calendar1:mark_day 14" \
2472 "button1:clicked"
2473 check 1 "Press \"OK\" if 1752-03-13 and 1752-03-14 are no longer marked on the calendar" \
2474 "calendar1:clear_marks" \
2475 "button1:clicked"
2476 check 3 "Hover over the calendar and do what the tooltip says" \
2477 "calendar1:set_tooltip_text Double-click on 1752-03-13" \
2478 "calendar1:clicked 1752-03-13" \
2479 "calendar1:clicked 1752-03-13" \
2480 "calendar1:doubleclicked 1752-03-13"
2481 check 0 "" \
2482 "calendar1:set_tooltip_text"
2483 check 1 "" \
2484 "calendar1:force" \
2485 "calendar1:clicked 1752-03-13"
2489 check 0 "" \
2490 "drawingarea1:transform =100 1 0 0 1 0 0"
2491 check 0 "" \
2492 "drawingarea1:set_source_rgba =101 green"
2493 check 0 "" \
2494 "drawingarea1:set_source_rgba =102 red"
2495 check 0 "" \
2496 "drawingarea1:rectangle =1 0 0 150 150\n drawingarea1:fill 1"
2497 check 0 "" \
2498 "drawingarea1:remove 1\n drawingarea1:remove 2\n drawingarea1:remove 3\n drawingarea1:remove 4"
2499 check 0 "" \
2500 "drawingarea1:rectangle 1 0 0 150 150\n drawingarea1:fill 1"
2501 check 0 "" \
2502 "drawingarea1:arc 1 80 80 60 30 60\n drawingarea1:set_source_rgba 1 red\n drawingarea1:stroke_preserve 1\n drawingarea1:line_to 1 80 80\n drawingarea1:fill 1"
2503 check 0 "" \
2504 "drawingarea1:arc_negative 1 80 80 70 30 60\n drawingarea1:set_source_rgba 1 green\n drawingarea1:stroke_preserve 1\n drawingarea1:rel_line_to 1 -50 -50\n drawingarea1:stroke 1"
2505 check 0 "" \
2506 "drawingarea1:curve_to 1 30 30 90 120 120 30\n drawingarea1:set_source_rgba 1 blue\n drawingarea1:stroke 1"
2507 check 0 "" \
2508 "drawingarea1:move_to 1 160 160\n drawingarea1:rel_curve_to 1 30 30 90 120 120 30\n drawingarea1:set_source_rgba 1 orange\n drawingarea1:stroke_preserve 1"
2509 check 0 "" \
2510 "drawingarea1:move_to 1 0 0\n drawingarea1:rel_move_to 1 0 155\n drawingarea1:rel_line_to 1 300 0\n drawingarea1:set_dash 1 10\n drawingarea1:stroke 1"
2511 check 0 "" \
2512 "drawingarea1:move_to 1 0 160\n drawingarea1:rel_line_to 1 300 0\n drawingarea1:set_dash 1 20 5\n drawingarea1:stroke 1"
2513 check 0 "" \
2514 "drawingarea1:move_to 1 0 165\n drawingarea1:rel_line_to 1 300 0\n drawingarea1:set_dash 1 5 20\n drawingarea1:stroke 1"
2515 check 0 "" \
2516 "drawingarea1:move_to 1 0 170\n drawingarea1:rel_line_to 1 300 0\n drawingarea1:set_dash 1 3 3 3 3 3 15\n drawingarea1:stroke 1"
2517 check 0 "" \
2518 "drawingarea1:set_dash 1"
2519 check 0 "" \
2520 "drawingarea1:set_source_rgba 103 brown\n drawingarea1:set_line_width 1 15"
2522 if test $INTERACTIVE; then
2523 check 1 "Press \"OK\" if the brown shape is rounded" \
2524 "drawingarea1:set_line_join 2 round\n drawingarea1:set_line_cap 2 round\n drawingarea1:move_to 1 160 20\n drawingarea1:rel_line_to 1 20 0\n drawingarea1:rel_line_to 1 0 20\n drawingarea1:stroke 1" \
2525 "button1:clicked"
2526 check 1 "Press \"OK\" if the second brown shape is shorter and bevelled and the square is mostly blue" \
2527 "drawingarea1:set_line_join 3 bevel\n drawingarea1:set_line_cap 3 butt\n drawingarea1:move_to 1 160 70\n drawingarea1:rel_line_to 1 20 0\n drawingarea1:rel_line_to 1 0 20\n drawingarea1:stroke 1\n drawingarea1:set_source_rgba =102 blue" \
2528 "button1:clicked"
2529 check 1 "Press \"OK\" if the third brown shape is square everything is a bit smaller" \
2530 "drawingarea1:set_line_join 3 miter\n drawingarea1:set_line_cap 3 square\n drawingarea1:move_to 1 160 120\n drawingarea1:rel_line_to 1 20 0\n drawingarea1:rel_line_to 1 0 20\n drawingarea1:stroke 1\n drawingarea1:set_source_rgba =101 magenta\n drawingarea1:scale =100 .7 .7" \
2531 "button1:clicked"
2532 check 1 "Press \"OK\" if the first brown shape is no longer rounded and everything rotated a bit" \
2533 "drawingarea1:remove 2\n drawingarea1:rotate 105<100 10" \
2534 "button1:clicked"
2535 check 1 "Press \"OK\" if all three brown shapes look the same" \
2536 "drawingarea1:remove 3" \
2537 "button1:clicked"
2541 check 0 "" \
2542 "drawingarea1:move_to 5 50 50\n drawingarea1:line_to 5 200 10\n drawingarea1:line_to 5 150 200\n drawingarea1:close_path 1\n drawingarea1:set_source_rgba 5 rgba(0,255,0,.2)\n drawingarea1:fill_preserve 1"
2543 check 0 "" \
2544 "drawingarea1:move_to 5 10 50\n drawingarea1:set_source_rgba 5 cyan\n drawingarea1:set_font_size 5 30\n drawingarea1:show_text 5 Xyz 789\n drawingarea1:set_font_size 5 10\n drawingarea1:show_text 5 Abc 123"
2545 check 0 "" \
2546 "drawingarea1:move_to 5 10 75\n drawingarea1:set_source_rgba 5 red\n drawingarea1:set_font_face 5 italic bold Courier\n drawingarea1:set_font_size 5 30\n drawingarea1:show_text 5 Xyz 789\n drawingarea1:set_font_size 5 10\n drawingarea1:show_text 5 Abc 123"
2547 check 0 "" \
2548 "drawingarea1:remove 1\n drawingarea1:remove 2\n drawingarea1:remove 3\n drawingarea1:remove 4"
2550 check 0 "" \
2551 "drawingarea2:rotate 55<500 5\n drawingarea2:scale 33 .7 .7\n drawingarea2:translate 77 30 30\n drawingarea2:transform 44"
2552 check 0 "" \
2553 "drawingarea2:rectangle 1<500 0 0 150 150\n drawingarea2:fill 1"
2554 check 0 "" \
2555 "drawingarea2:arc 1 80 80 60 30 60\n drawingarea2:set_source_rgba 1 red\n drawingarea2:stroke_preserve 1\n drawingarea2:line_to 1 80 80\n drawingarea2:fill 1"
2556 check 0 "" \
2557 "drawingarea2:arc_negative 1 80 80 70 30 60\n drawingarea2:set_source_rgba 1 green\n drawingarea2:stroke_preserve 1\n drawingarea2:rel_line_to 1 -50 -50\n drawingarea2:stroke 1"
2558 check 0 "" \
2559 "drawingarea2:curve_to 1 30 30 90 120 120 30\n drawingarea2:set_source_rgba 1 blue\n drawingarea2:stroke 1"
2560 check 0 "" \
2561 "drawingarea2:move_to 1 160 160\n drawingarea2:rel_curve_to 1 30 30 90 120 120 30\n drawingarea2:set_source_rgba 1 orange\n drawingarea2:stroke_preserve 1"
2562 check 0 "" \
2563 "drawingarea2:move_to 1 0 0\n drawingarea2:rel_move_to 1 0 155\n drawingarea2:rel_line_to 1 300 0\n drawingarea2:set_dash 1 10\n drawingarea2:stroke 1"
2564 check 0 "" \
2565 "drawingarea2:move_to 1 0 160\n drawingarea2:rel_line_to 1 300 0\n drawingarea2:set_dash 1 20 5\n drawingarea2:stroke 1"
2566 check 0 "" \
2567 "drawingarea2:move_to 1 0 165\n drawingarea2:rel_line_to 1 300 0\n drawingarea2:set_dash 1 5 20\n drawingarea2:stroke 1"
2568 check 0 "" \
2569 "drawingarea2:move_to 1 0 170\n drawingarea2:rel_line_to 1 300 0\n drawingarea2:set_dash 1 3 3 3 3 3 15\n drawingarea2:stroke 1"
2570 check 0 "" \
2571 "drawingarea2:set_dash 1"
2572 check 0 "" \
2573 "drawingarea2:set_source_rgba 1 brown\n drawingarea2:set_line_width 1 15"
2574 check 0 "" \
2575 "drawingarea2:set_line_cap 2 round\n drawingarea2:move_to 1 160 20\n drawingarea2:rel_line_to 1 20 0\n drawingarea2:rel_line_to 1 0 20\n drawingarea2:stroke 1"
2576 check 0 "" \
2577 "drawingarea2:set_line_join 3 bevel\n drawingarea2:set_line_cap 3 butt\n drawingarea2:move_to 1 160 70\n drawingarea2:rel_line_to 1 20 0\n drawingarea2:rel_line_to 1 0 20\n drawingarea2:stroke 1"
2578 check 0 "" \
2579 "drawingarea2:set_line_join 3 miter\n drawingarea2:set_line_cap 3 square\n drawingarea2:move_to 1 160 120\n drawingarea2:rel_line_to 1 20 0\n drawingarea2:rel_line_to 1 0 20\n drawingarea2:stroke 1"
2580 check 0 "" \
2581 "drawingarea2:remove 2"
2582 check 0 "" \
2583 "drawingarea2:remove 3"
2585 if test $INTERACTIVE; then
2587 check 1 "Press \"OK\" if the drawing looks tilted and displaced" \
2588 "drawingarea2:remove 44" \
2589 "button1:clicked"
2590 check 1 "Press \"OK\" if the drawing doesn't look tilted anymore" \
2591 "drawingarea2:remove 55" \
2592 "button1:clicked"
2593 check 1 "Press \"OK\" if the drawing has grown a bit" \
2594 "drawingarea2:remove 33" \
2595 "button1:clicked"
2596 check 1 "Press \"OK\" if the drawing has moved into the NE corner" \
2597 "drawingarea2:remove 77" \
2598 "button1:clicked"
2602 check 0 "" \
2603 "drawingarea1:set_source_rgba 6 red\n drawingarea1:set_font_size 6 20\n drawingarea1:transform 99 .985 -.174 .174 .985 0 0"
2604 check 0 "" \
2605 "drawingarea1:move_to 6 100 100\n drawingarea1:rel_move_for 6 c CENTER\n drawingarea1:show_text 6 CENTER"
2606 check 0 "" \
2607 "drawingarea1:set_source_rgba 6 blue\n drawingarea1:set_font_size 6 20"
2608 check 0 "" \
2609 "drawingarea1:move_to 6 100 100\n drawingarea1:rel_move_for 6 nw NORTHWEST\n drawingarea1:show_text 6 NORTHWEST"
2610 check 0 "" \
2611 "drawingarea1:move_to 6 100 100\n drawingarea1:rel_move_for 6 ne NORTHEAST\n drawingarea1:show_text 6 NORTHEAST"
2612 check 0 "" \
2613 "drawingarea1:move_to 6 100 100\n drawingarea1:rel_move_for 6 se SOUTHEAST\n drawingarea1:show_text 6 SOUTHEAST"
2614 check 0 "" \
2615 "drawingarea1:move_to 6 100 100\n drawingarea1:rel_move_for 6 sw SOUTHWEST\n drawingarea1:show_text 6 SOUTHWEST"
2616 check 0 "" \
2617 "drawingarea1:set_source_rgba 6 magenta\n drawingarea1:set_font_size 6 20"
2618 check 0 "" \
2619 "drawingarea1:move_to 6 100 140\n drawingarea1:rel_move_for 6 s SOUTH\n drawingarea1:show_text 6 SOUTH"
2620 check 0 "" \
2621 "drawingarea1:move_to 6 100 140\n drawingarea1:rel_move_for 6 n NORTH\n drawingarea1:show_text 6 NORTH"
2622 check 0 "" \
2623 "drawingarea1:set_source_rgba 6 green\n drawingarea1:set_font_size 6 20"
2624 check 0 "" \
2625 "drawingarea1:move_to 6 100 140\n drawingarea1:rel_move_for 6 e EAST\n drawingarea1:show_text 6 EAST"
2626 check 0 "" \
2627 "drawingarea1:move_to 600 100 140\n drawingarea1:rel_move_for 6 w WEST\n drawingarea1:show_text 6 WEST\n drawingarea1:set_font_size 800<600 30"
2628 check 0 "" \
2629 "drawingarea1:snapshot $EPS_FILE\n drawingarea1:snapshot $EPSF_FILE\n drawingarea1:snapshot $PDF_FILE\n drawingarea1:snapshot $PS_FILE\n drawingarea1:snapshot $SVG_FILE"
2631 check_cmd "file -b $EPS_FILE | grep -qe EPS"
2632 check_cmd "file -b $EPSF_FILE | grep -qe EPS"
2633 check_cmd "file -b $PS_FILE | grep -qe PostScript"
2634 check_cmd "file -b $SVG_FILE | grep -qe SVG"
2635 check 0 "" \
2636 "notebook1:set_current_page 0\n image2:set_from_file $SVG_FILE"
2638 if test $INTERACTIVE; then
2640 check 2 "Hit Backspace, Enter" \
2641 "eventbox1:grab_focus" \
2642 "eventbox1:key_press BackSpace" \
2643 "eventbox1:key_press Return"
2644 check 6 "Inside the DrawingArea, left-click, middle-click, right-click (Don't move the mouse while clicking)" \
2645 "" \
2646 "eventbox1:button_press 1" \
2647 "eventbox1:button_release 1" \
2648 "eventbox1:button_press 2" \
2649 "eventbox1:button_release 2" \
2650 "eventbox1:button_press 3" \
2651 "eventbox1:button_release 3"
2652 check 3 "Inside the DrawingArea and all within one second, hold the left button down, move around a bit, and release it again" \
2653 "" \
2654 "eventbox1:button_press 1" \
2655 "eventbox1:motion" \
2656 "eventbox1:motion"
2657 sleep 1.5
2658 check 1 "Hit Space" \
2659 "button1:grab_focus" \
2660 "button1:clicked"
2662 check 1 "Press the biggest button if there is a spinning spinner" \
2663 "spinner1:start\n no_button:set_size_request 400 200" \
2664 "no_button:clicked"
2665 check 1 "Press \"OK\" if the spinner has stopped" \
2666 "spinner1:stop" \
2667 "button1:clicked"
2668 check 1 "Press \"OK\" if the \"No\" button is back to normal size" \
2669 "no_button:set_size_request" \
2670 "button1:clicked"
2672 check 0 "" \
2673 "notebook1:set_current_page 3"
2674 check 1 "Click into page 4 (vscroll)" \
2675 "scrolledwindow8:vscroll 4500" \
2676 "button_sw:clicked"
2677 check 1 "Click into page 4 (hscroll)" \
2678 "scrolledwindow8:hscroll 4500" \
2679 "button_se:clicked"
2680 check 1 "Click into page 4 (hscroll_to_range, vscroll_to_range)" \
2681 "scrolledwindow8:hscroll_to_range 1600 2900\n scrolledwindow8:vscroll_to_range 1600 2900" \
2682 "button_c:clicked"
2684 check 1 "Press \"OK\" if there is now a \"Disconnect\" button" \
2685 "button2:set_visible 1\n button2:set_sensitive 0" \
2686 "button1:clicked"
2687 check 1 "Press \"Disconnect\"" \
2688 "button2:set_sensitive 1" \
2689 "button2:clicked"
2691 check 1 "Press \"BIG BUTTON\" inside the window titled \"PRESS ME\"" \
2692 "dialog1:set_title PRESS ME\n dialog1:set_visible 1\n dialog1:resize 800 800\n dialog1:move 50 50" \
2693 "button3:clicked"
2694 check 1 "" \
2695 "button3:set_label PRESS THIS GIANT BUTTON NOW\n dialog1:fullscreen" \
2696 "button3:clicked"
2697 check 1 "" \
2698 "button3:set_label Hit Escape to close this window\n button3:set_sensitive 0" \
2699 "dialog1:closed"
2700 check 0 "" \
2701 "dialog1:set_visible 0"
2703 check 1 "Press \"OK\" if the progress bar shows 90%" \
2704 "progressbar1:set_fraction .9\n progressbar1:set_text" \
2705 "button1:clicked"
2706 check 1 "Press \"OK\" if the progress bar text reads \"The End\"" \
2707 "progressbar1:set_text The End" \
2708 "button1:clicked"
2709 check 1 "" \
2710 "statusbar1:push_id Id100 Press \"No\"\n statusbar1:push_id ABC nonsense #1\n statusbar1:push_id DEF nonsense #2.1\n statusbar1:push_id DEF nonsense 2.2\n statusbar1:pop\n statusbar1:pop\n statusbar1:pop_id 1\n statusbar1:pop_id ABC\n statusbar1:pop_id DEF\n statusbar1:pop_id DEF\n statusbar1:push_id GHI nonsense 3.1\n statusbar1:push_id GHI nonsense 3.2\n statusbar1:remove_all_id GHI" \
2711 "no_button:clicked"
2715 check 0 "" \
2716 "statusbar1:remove_all_id ZZZ"
2719 echo "_:main_quit" >$FIN
2720 check_rm $FIN
2721 check_rm $FOUT
2724 check_cmd "head -n 2 $LOG | tail -n 1 | grep -q '##### (New Pipeglade session) #####'"
2725 check_cmd "tail -n 4 $LOG | head -n 1 | grep -q '### (Idle) ###'"
2726 check_cmd "tail -n 3 $LOG | head -n 1 | grep -q 'statusbar1:remove_all_id ZZZ'"
2727 check_cmd "tail -n 2 $LOG | head -n 1 | grep -q '### (Idle) ###'"
2728 # check_cmd "tail -n 1 $LOG | grep '_:main_quit'"
2730 if test $AUTOMATIC; then
2731 unset -v BIG_STRING
2732 unset -v BIG_NUM
2733 unset -v WEIRD_PATH
2734 for i in {1..10}; do
2735 echo "treeview1:set $i 3 $RANDOM"
2736 echo "treeview1:set $i 8 $RANDOM"
2737 echo "treeview1:set $i 9 row $i"
2738 done > $DIR/$FILE4
2739 for i in {1..10}; do
2740 echo "treeview2:set $i 3 $RANDOM"
2741 echo "treeview2:set $i 8 $RANDOM"
2742 echo "treeview2:set $i 9 row $i"
2743 done > $DIR/$FILE5
2744 cut -f2- $LOG > $DIR/$FILE6
2745 echo -e "g/_:main_quit/d\ng|$FILE6|d\ng/:load/s|$FILE1|$FILE4|\ng/:load/s|$FILE2|$FILE5|\nwq" | ed -s $DIR/$FILE6
2746 for i in {1..5}; do
2747 cat $DIR/$FILE6
2748 done >$BIG_INPUT
2749 cp "$BIG_INPUT" "$BIG_INPUT2"
2750 echo "_:load $BIG_INPUT2" >>$BIG_INPUT
2751 echo "_:main_quit" >>$BIG_INPUT
2752 echo -e "g/_:load/d\ng/^#/d\nwq" | ed -s $BIG_INPUT2
2753 ./pipeglade -i $FIN -o $FOUT -O $BIG_INPUT_ERR -b >/dev/null
2754 cat "$FOUT" >/dev/null &
2755 cat "$BIG_INPUT" > "$FIN"
2756 while test \( -e $FOUT -a -e $FIN \); do sleep .5; done
2757 check_cmd "test $(grep -v -e WARNING -e '^$' $BIG_INPUT_ERR | wc -l) -eq 0"
2758 cat $BIG_INPUT_ERR
2759 rm -f $BIG_INPUT_ERR
2760 ./pipeglade -O $BIG_INPUT_ERR <$BIG_INPUT >/dev/null
2761 check_cmd "test $(grep -v -e WARNING -e '^$' $BIG_INPUT_ERR | wc -l) -eq 0"
2764 echo "PASSED: $OKS/$TESTS; FAILED: $FAILS/$TESTS"