summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js b/external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js
new file mode 100644
index 000000000..070b2fa1b
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.3_Line_Terminators/S7.3_A5.3.js
@@ -0,0 +1,19 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S7.3_A5.3;
+ * @section: 7.3, 7.4;
+ * @assertion: Multi line comment can contain LINE SEPARATOR (U+2028);
+ * @description: Insert LINE SEPARATOR (U+2028) into multi line comment;
+ */
+
+// CHECK#1
+eval("/*\u2028 multi line \u2028 comment \u2028*/");
+
+//CHECK#2
+var x = 0;
+eval("/*\u2028 multi line \u2028 comment \u2028 x = 1;*/");
+if (x !== 0) {
+ $ERROR('#1: var x = 0; eval("/*\\u2028 multi line \\u2028 comment \\u2028 x = 1;*/"); x === 0. Actual: ' + (x));
+}