Index: trunk/parsers/wikidom/tests/annotations/test.js |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | var lines = [ |
5 | 5 | { |
6 | | - "text": "This is a test paragraph!\n", |
| 6 | + "text": "This is a test paragraph!", |
7 | 7 | "annotations": [ |
8 | 8 | { |
9 | 9 | "type": "italic", |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | ] |
33 | 33 | }, |
34 | 34 | { |
35 | | - "text": "Paragraphs can have more than one line.\n", |
| 35 | + "text": "Paragraphs can have more than one line.", |
36 | 36 | "annotations": [ |
37 | 37 | { |
38 | 38 | "type": "italic", |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | equal( |
68 | 68 | content.substring( 39 ), |
69 | | - 'n have more than one line.\n', |
| 69 | + 'n have more than one line.', |
70 | 70 | 'Uses data length if end is not given' |
71 | 71 | ); |
72 | 72 | equal( |
— | — | @@ -75,18 +75,18 @@ |
76 | 76 | ); |
77 | 77 | equal( |
78 | 78 | content.substring( 39, 100000000000 ), |
79 | | - 'n have more than one line.\n', |
| 79 | + 'n have more than one line.', |
80 | 80 | 'Clamps out of range end arguments' |
81 | 81 | ); |
82 | 82 | equal( |
83 | 83 | content.substring(), |
84 | | - 'This is a test paragraph!\nParagraphs can have more than one line.\n', |
| 84 | + 'This is a test paragraph!\nParagraphs can have more than one line.', |
85 | 85 | 'Called without arguments returns all text' |
86 | 86 | ); |
87 | 87 | } ); |
88 | 88 | |
89 | 89 | test( 'Content.getLength', function() { |
90 | | - equals( content.getLength(), 66, 'Returns correct length' ); |
| 90 | + equals( content.getLength(), 65, 'Returns correct length' ); |
91 | 91 | } ) |
92 | 92 | |
93 | 93 | test( 'Content.slice', function() { |
— | — | @@ -157,8 +157,7 @@ |
158 | 158 | "i", |
159 | 159 | "n", |
160 | 160 | "e", |
161 | | - ".", |
162 | | - "\n" |
| 161 | + "." |
163 | 162 | ], |
164 | 163 | 'Called without arguments returns all data' |
165 | 164 | ); |