From 14cb6ca88ebaad8243048204f33501df27a60018 Mon Sep 17 00:00:00 2001
From: Mike Pennisi <mike@mikepennisi.com>
Date: Wed, 15 Apr 2015 10:47:15 -0400
Subject: [PATCH] Extend tests for LineTerminatorSequence

Add assertions for the "Line Separtator" and "Paragraph Separator" line
terminator code points.
---
 .../template-values/line-continuation.js       | 18 +++++++++++++++++-
 .../line-terminator-sequence.js                | 18 +++++++++++++++++-
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/test/language/expressions/template/template-values/line-continuation.js b/test/language/expressions/template/template-values/line-continuation.js
index 8488a99c4f..c19fe0c53b 100644
--- a/test/language/expressions/template/template-values/line-continuation.js
+++ b/test/language/expressions/template/template-values/line-continuation.js
@@ -12,8 +12,24 @@ var calls;
 calls = 0;
 (function(cs) {
   calls++;
-  assert.sameValue(cs.raw[0], '\u005C\n\u005C\n\u005C\n');
+  assert.sameValue(
+    cs.raw[0], '\u005C\n\u005C\n\u005C\n', 'Line Feed and Carriage Return'
+  );
 })`\
 \
 \
`
 assert.sameValue(calls, 1);
+
+calls = 0;
+(function(cs) {
+  calls++;
+  assert.sameValue(cs.raw[0], '\\\u2028', 'Line Separator');
+})`\
`
+assert.sameValue(calls, 1);
+
+calls = 0;
+(function(cs) {
+  calls++;
+  assert.sameValue(cs.raw[0], '\\\u2029', 'Paragraph Separator');
+})`\
`
+assert.sameValue(calls, 1);
diff --git a/test/language/expressions/template/template-values/line-terminator-sequence.js b/test/language/expressions/template/template-values/line-terminator-sequence.js
index 507b5816a4..e9ecd41336 100644
--- a/test/language/expressions/template/template-values/line-terminator-sequence.js
+++ b/test/language/expressions/template/template-values/line-terminator-sequence.js
@@ -5,6 +5,8 @@ es6id: 11.8.6
 description: >
     The TRV of LineTerminatorSequence :: <LF> is the code unit value 0x000A.
     The TRV of LineTerminatorSequence :: <CR> is the code unit value 0x000A.
+    The TRV of LineTerminatorSequence :: <LS> is the code unit value 0x2028.
+    The TRV of LineTerminatorSequence :: <PS> is the code unit value 0x2029.
     The TRV of LineTerminatorSequence :: <CR><LF> is the sequence consisting of
     the code unit value 0x000A.
 ---*/
@@ -13,8 +15,22 @@ var calls;
 calls = 0;
 (function(s) {
   calls++;
-  assert.sameValue(s.raw[0], '\n\n\n');
+  assert.sameValue(s.raw[0], '\n\n\n', 'Line Feed and Carriage Return');
 })`
 
 
`;
 assert.sameValue(calls, 1);
+
+calls = 0;
+(function(cs) {
+  calls++;
+  assert.sameValue(cs.raw[0], '\u2028', 'Line Separator');
+})`
`
+assert.sameValue(calls, 1);
+
+calls = 0;
+(function(cs) {
+  calls++;
+  assert.sameValue(cs.raw[0], '\u2029', 'Paragraph Separator');
+})`
`
+assert.sameValue(calls, 1);
-- 
GitLab