summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/template-literal/tv-template-characters.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/expressions/template-literal/tv-template-characters.js')
-rw-r--r--js/src/tests/test262/language/expressions/template-literal/tv-template-characters.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/template-literal/tv-template-characters.js b/js/src/tests/test262/language/expressions/template-literal/tv-template-characters.js
new file mode 100644
index 0000000000..30e838ba59
--- /dev/null
+++ b/js/src/tests/test262/language/expressions/template-literal/tv-template-characters.js
@@ -0,0 +1,25 @@
+// Copyright (C) 2014 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+es6id: 11.8.6.1
+description: Template values of multiple template characters
+info: |
+ The TV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a
+ sequence consisting of the code units in the TV of TemplateCharacter
+ followed by all the code units in the TV of TemplateCharacters in order.
+ The TRV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a
+ sequence consisting of the code units in the TRV of TemplateCharacter
+ followed by all the code units in the TRV of TemplateCharacters, in order.
+---*/
+
+var calls = 0;
+
+(function(s) {
+ calls++;
+ assert.sameValue(s.raw[0], 'test');
+})`test`;
+
+assert.sameValue(calls, 1);
+assert.sameValue(`test`, 'test');
+
+reportCompare(0, 0);