summaryrefslogtreecommitdiffstats
path: root/tests/qtuitest/sys_input/sys_input.qtt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtuitest/sys_input/sys_input.qtt')
-rw-r--r--tests/qtuitest/sys_input/sys_input.qtt74
1 files changed, 19 insertions, 55 deletions
diff --git a/tests/qtuitest/sys_input/sys_input.qtt b/tests/qtuitest/sys_input/sys_input.qtt
index 51f7301..56a0908 100644
--- a/tests/qtuitest/sys_input/sys_input.qtt
+++ b/tests/qtuitest/sys_input/sys_input.qtt
@@ -42,61 +42,6 @@
testcase = {
- runAsManualTest: function() {
- if (!runAsManualTest())
- skip( "This test only makes sense when executed in -force-manual mode" );
-
- manualTest( "Do something" );
- startApplication("foobar");
- prompt( "This should all nicely fold into one big prompt" );
- prompt( "Line 1\nLine 2\nLine 3" );
- verify( isVisible( "blah" ) );
- verify( isVisible( activeWindow() ) );
- compare( getText(focusWidget()), "this text" );
- compare( "this text", getText(focusWidget()) );
- compare( getSelectedText(tabBar()), getText(focusWidget()) );
- select( "foo", tabBar() );
- compare( getSelectedText(tabBar()), "First Tab" );
- compare( getSelectedValue("Name"), "a reference value" );
- compare( getValue("Address"), "Elysium road" );
- compare( "Elysium road", getValue("Address") );
- compare( getList( "Friends"), getList( "Other Friends") );
- mouseClick( getCenter( "foo", "bar" ) );
- var l = getLabels( "app" );
- verify(l.contains("Name"), "Verify that labels for 'app' contain 'Name'");
- setClipboardText( l );
- compare( getClipboardText(), "foobar" );
- compare( currentTitle(), "Contacts" );
- compare( getWindowTitles(), "A\nB\nC" );
- activateWindow( "mainwindow" );
- verify( getenv( "PATH" ).contains( "/home/user/foobar" ) );
- verify( checkOS( "linux" ) );
- verifyImage( "task_completed", "",
- "Verify that the current task is shown with a green tick indicating completion" );
- verify( compareImage( "expected", "actual" ));
- verify( getData("srcFile") == "blah" );
- verify( getImageSize( "srcFile" ) == "12345" );
- getFile("/tmp/foo.conf", "$HOME/Settings/foo.conf" );
- putFile("testdata/my_settings.conf", "$HOME/Settings/foo.conf");
- putFile("testdata/my_file", "$HOME/my_file", 12 ); //QFile.WriteOwner | QFile.ReadOwner | QFile.ReadOther);
- },
-
- runAutoTest: function() {
- if (runAsManualTest())
- skip( "This test only makes sense when NOT executed in -force-manual mode" );
-
- startApplication("testapp1");
- manualTest( "step 1");
- manualTest( "step 2");
- manualTest( "step 3");
-
- compare(currentTitle(), "testapp1");
-
- manualTest( "step4" );
- manualTest( "step5" );
- manualTest( "step6" );
- },
-
activate_tabBar: function() {
startApplication("testapp1");
@@ -226,6 +171,25 @@ testcase = {
simple2: [ new Date(2004, 10, 11) ]
},
+ // enter() with QDateTimeEdit fields.
+ enter_QDateTimeEdit: function(date) {
+ startApplication("testapp1");
+
+ select("Awesome Tab", tabBar());
+
+ enter(date, "DateTime");
+
+ compare( getValue("DateTime"), date );
+
+ },
+
+ enter_QDateTimeEdit_data: {
+ simple1: [ new Date(2000, 6, 15, 17, 27, 0) ],
+ december: [ new Date(2000, 11, 15, 0, 30, 0) ],
+ end_of_month: [ new Date(2002, 5, 30, 12, 15, 0) ],
+ simple2: [ new Date(2004, 10, 11) ]
+ },
+
// Explicit mouse clicks on widgets
mouseClick: function() {
startApplication("testapp1");