| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
var calls; |
| 15 |
|
| 16 |
calls = 0; |
| 17 |
(function(cs) { |
| 18 |
calls++; |
| 19 |
assert.sameValue(cs[0], '', 'Line Feed and Carriage Return'); |
| 20 |
assert.sameValue( |
| 21 |
cs.raw[0], '\u005C\n\u005C\n\u005C\n', 'Line Feed and Carriage Return' |
| 22 |
); |
| 23 |
})`\ |
| 24 |
\ |
| 25 |
\
` |
| 26 |
assert.sameValue(calls, 1); |
| 27 |
|
| 28 |
calls = 0; |
| 29 |
(function(cs) { |
| 30 |
calls++; |
| 31 |
assert.sameValue(cs[0], '', 'Line Separator'); |
| 32 |
assert.sameValue(cs.raw[0], '\\\u2028', 'Line Separator'); |
| 33 |
})`\
` |
| 34 |
assert.sameValue(calls, 1); |
| 35 |
|
| 36 |
calls = 0; |
| 37 |
(function(cs) { |
| 38 |
calls++; |
| 39 |
assert.sameValue(cs[0], '', 'Paragraph Separater'); |
| 40 |
assert.sameValue(cs.raw[0], '\\\u2029', 'Paragraph Separator'); |
| 41 |
})`\
` |
| 42 |
assert.sameValue(calls, 1); |