OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <p id="description"></p> | 6 <p id="description"></p> |
7 <div id="console"></div> | 7 <div id="console"></div> |
8 <script> | 8 <script> |
9 | 9 |
10 description("This tests the parser and serializer for draggable region values.")
; | 10 description("This tests the parser and serializer for draggable region values.")
; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 shouldBe("parseDraggableRegion('Drag')", "'drag'"); | 43 shouldBe("parseDraggableRegion('Drag')", "'drag'"); |
44 shouldBe("parseDraggableRegion('DrAG')", "'drag'"); | 44 shouldBe("parseDraggableRegion('DrAG')", "'drag'"); |
45 shouldBe("parseDraggableRegion('NO-DrAG')", "'no-drag'"); | 45 shouldBe("parseDraggableRegion('NO-DrAG')", "'no-drag'"); |
46 shouldBe("parseDraggableRegion('NO-DRAG')", "'no-drag'"); | 46 shouldBe("parseDraggableRegion('NO-DRAG')", "'no-drag'"); |
47 | 47 |
48 debug(''); | 48 debug(''); |
49 debug('Some expected failures.'); | 49 debug('Some expected failures.'); |
50 debug(''); | 50 debug(''); |
51 | 51 |
52 shouldBe("parseDraggableRegion('')", "null"); | 52 shouldBeEqualToString("parseDraggableRegion('')", ""); |
53 shouldBe("parseDraggableRegion(' ')", "null"); | 53 shouldBeEqualToString("parseDraggableRegion(' ')", ""); |
54 shouldBe("parseDraggableRegion('x')", "null"); | 54 shouldBeEqualToString("parseDraggableRegion('x')", ""); |
55 shouldBe("parseDraggableRegion('x-')", "null"); | 55 shouldBeEqualToString("parseDraggableRegion('x-')", ""); |
56 shouldBe("parseDraggableRegion('x()')", "null"); | 56 shouldBeEqualToString("parseDraggableRegion('x()')", ""); |
57 shouldBe("parseDraggableRegion('x(a)')", "null"); | 57 shouldBeEqualToString("parseDraggableRegion('x(a)')", ""); |
58 shouldBe("parseDraggableRegion('none x')", "null"); | 58 shouldBeEqualToString("parseDraggableRegion('none x')", ""); |
59 shouldBe("parseDraggableRegion('none x()')", "null"); | 59 shouldBeEqualToString("parseDraggableRegion('none x()')", ""); |
60 shouldBe("parseDraggableRegion('none x(a)')", "null"); | 60 shouldBeEqualToString("parseDraggableRegion('none x(a)')", ""); |
61 | 61 |
62 debug(''); | 62 debug(''); |
63 | 63 |
64 | 64 |
65 </script> | 65 </script> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |