2 # ---------------------------------------------------------
4 # Filename: threadXXX.ui
6 # Purpose: test cases for ui test
10 # Maintainer: jd@suse.de
12 # Remarks: Always the user interaction is removed:
13 # any answer = UserInput();
14 # Furthermore the tested action is set into a loop
16 # ---------------------------------------------------------
19 // Example1 for threads, former vbox1
21 // Syntax: VBox( [Id id, ] widget1, widget2, ... )
28 return( ( is( CurrentMap, map ) == true ) &&
29 ( size( CurrentMap ) == 4 ) &&
30 ( select( CurrentMap, 0 ) == [`Id("cb1"), false] ) &&
31 ( select( CurrentMap, 1 ) == [`Id("cb2"), false] ) &&
32 ( select( CurrentMap, 2 ) == [`Id("cb3"), false] ) &&
33 ( select( CurrentMap, 3 ) == [`Id("cb4"), false] ) );
38 any ok = `HBox(`Stretch(), `Pushbutton(`Id("ok"), "OK"), `Stretch());
43 any dialog = Dialog( `VBox(
45 `Checkbox(`Id("cb1"), "Option1"),
46 `Checkbox(`Id("cb2"), "Option2"),
47 `Checkbox(`Id("cb3"), "Option3"),
48 `Checkbox(`Id("cb4"), "Option4")
54 any CurrentMap = QueryDialog( dialog );
56 if( Check() == false ) return false;