NOTE: This is the TestCases web. You cannot edit any topic named "TestCase..." or "Web..." in this web, you can only create new topics. Any topics you do create that are not checked into subversion may be deleted by anyone, at any time.

EditTablePlugin and javascript interface

Description: Manual test textareas in EditTablePlugin. Tests that the javascript interface works correctly in saving all changes that are done on the screen.

Testing

Testing perl code in conjunction with the javascript interface, you may use this table:
%TABLE{headerrows="1" footerrows="1"}%
%EDITTABLE{header="| *HEADER* |"}%
| *HEADER* |
| do |
| re |
| mi |
| *FOOTER* |

HEADER
FOOTER
do
re
mi

Test case 1

  1. Click "Delete last row"
  2. Click the X button at row 1
  3. Save the table
  4. The only body row should be 're'

Test case 2

The reverse order of test case 1:
  1. Click the X button at row 1
  2. Click "Delete last row"
  3. Save the table
  4. The only body row should be "re"

Test case 3

  1. Click the X button at rows 1, 2 and 3
  2. Click the button "Add row"
  3. In the text field, enter "fa"
  4. Save the table
  5. The only body row should be "fa"

Test case 4

The reverse order of test case 3:
  1. Click the button "Add row"
  2. In the text field, enter "fa"
  3. Click the X button at rows 1, 2 and 3
  4. Save the table
  5. The only body row should be "fa"

Test case 5

Add and delete
  1. Click the button "Add row"
  2. In the text field, enter "fa"
  3. Click the button "Add row"
  4. Click the X button at the last (just created) row
  5. Save the table
  6. The body rowa should be: do, re, mi, fa

Test case 6

Add and move...
  1. Click the button "Add row"
  2. In the text field, enter "fa"
  3. Move the 'fa' row to position 1
  4. Save the table
  5. The body rows should be: fa, do, re, mi

Wersja tematu: r1. Ostatnia edycja: 2009-03-08, ProjectContributor. Stronę odwiedzono 83 razy.
 
O ile nie jest to stwierdzone inaczej, wszystkie materiały na stronie są dostępne na licencji Creative Commons Uznanie Autorstwa 3.0 Polska.
Pewne prawa zastrzeżone na rzecz Polskiej Partii Piratów. Serwis wykorzystuje oprogramowanie Foswiki na licencji GPL v2.