1 This tests the parser and serializer for draggable region values.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS parseDraggableRegion('drag') is 'drag'
8 PASS parseDraggableRegion('no-drag') is 'no-drag'
10 Tests for variations in whitespace that are allowed.
12 PASS parseDraggableRegion(' drag ') is 'drag'
13 PASS parseDraggableRegion(' no-drag ') is 'no-drag'
15 Tests for case insensitivity.
17 PASS parseDraggableRegion('Drag') is 'drag'
18 PASS parseDraggableRegion('DrAG') is 'drag'
19 PASS parseDraggableRegion('NO-DrAG') is 'no-drag'
20 PASS parseDraggableRegion('NO-DRAG') is 'no-drag'
22 Some expected failures.
24 PASS parseDraggableRegion('') is ""
25 PASS parseDraggableRegion(' ') is ""
26 PASS parseDraggableRegion('x') is ""
27 PASS parseDraggableRegion('x-') is ""
28 PASS parseDraggableRegion('x()') is ""
29 PASS parseDraggableRegion('x(a)') is ""
30 PASS parseDraggableRegion('none x') is ""
31 PASS parseDraggableRegion('none x()') is ""
32 PASS parseDraggableRegion('none x(a)') is ""
34 PASS successfullyParsed is true