diff options
author | Damian Jansen <damian.jansen@nokia.com> | 2012-03-23 11:09:30 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-26 02:55:20 +0200 |
commit | 6b516a83051727c1ca02a8b400409927ad615ea6 (patch) | |
tree | 42be6e9133b1f162c3cbe424841c1180c102a518 /tests/system | |
parent | ea9ffebecd29887ad44b952ab02824072af6bb32 (diff) |
Basic system tests for ListView sections
Change-Id: I3f33aa77a4bbe87a832066bd1f527521dfa543ff
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'tests/system')
-rw-r--r-- | tests/system/sys_listview.qtt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/system/sys_listview.qtt b/tests/system/sys_listview.qtt index efd116fa92..ca10e1a0df 100644 --- a/tests/system/sys_listview.qtt +++ b/tests/system/sys_listview.qtt @@ -43,6 +43,74 @@ testcase = { + using_section_delegates: function() + { + // Test Meta-data + testTitle = "Using and changing section delegate properties"; + testBinary = "sections.qml"; + testSource: "$QTDIR/qtdeclarative/tests/system/listview"; + testGoal = "Verify that a Component can be set as a section header, using various properties for different collections."; + testPreconditions = "None"; + testGroups = "BAT,QtQuick 2.0"; + + // Test Steps + prompt(twiki('---+++ ' + testTitle + '<br><br> + *Goal:* ' + testGoal + '<br> + *Pre-Requisites:* ' + testPreconditions + '<br> + *Tested Binary:* ' + testBinary + '<br> + | *Step* | *Verification* | + | Run '+testBinary+' | Application has started, showing a ListView | + | | The view shows a single character section header for each element | + | Press the Criteria button | The section headers now show the full name of each item | + | Press Property | The section headers now show the id value for the items | + | Press Criteria | The section headers now only show i - the first character of id | + | Press Property | The section headers show the first character of the item names |')); + }, + + updating_sections: function() + { + // Test Meta-data + testTitle = "Updating Collected Sections"; + testBinary = "sections.qml"; + testSource: "$QTDIR/qtdeclarative/tests/system/listview"; + testGoal = "Verify that a section is updated when items are added."; + testPreconditions = "None"; + testGroups = "BAT,QtQuick 2.0"; + + // Test Steps + prompt(twiki('---+++ ' + testTitle + '<br><br> + *Goal:* ' + testGoal + '<br> + *Pre-Requisites:* ' + testPreconditions + '<br> + *Tested Binary:* ' + testBinary + '<br> + | *Step* | *Verification* | + | Run '+testBinary+' | Application has started, showing a ListView | + | | The view shows a single character section header for each element | + | Press the + button | A duplicate of every name is added | + | | Each duplicate is place in the same section as the original |')); + }, + + changing_section_delegates: function() + { + // Test Meta-data + testTitle = "Changing Section Delegates"; + testBinary = "sections.qml"; + testSource: "$QTDIR/qtdeclarative/tests/system/listview"; + testGoal = "Verify that a section delegate can be changed."; + testPreconditions = "None"; + testGroups = "BAT,QtQuick 2.0"; + + // Test Steps + prompt(twiki('---+++ ' + testTitle + '<br><br> + *Goal:* ' + testGoal + '<br> + *Pre-Requisites:* ' + testPreconditions + '<br> + *Tested Binary:* ' + testBinary + '<br> + | *Step* | *Verification* | + | Run '+testBinary+' | Application has started, showing a ListView | + | | The view shows a single character section header for each element | + | Press the Delegate button | The section headers now show as light blue rectangles | + | Press the Criteria button | The headers show as full names, still within light blue rectangles |')); + }, + altering_listview_primary_properties: function() { // Test Meta-data |