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