Revision: 21557
Author:   [email protected]
Date:     Wed May 28 09:52:38 2014 UTC
Log:      Add Seq[One,Two]ByteString to runtime test generator.

[email protected], [email protected]

Review URL: https://codereview.chromium.org/303543006
http://code.google.com/p/v8/source/detail?r=21557

Modified:
 /branches/bleeding_edge/tools/generate-runtime-tests.py

=======================================
--- /branches/bleeding_edge/tools/generate-runtime-tests.py Mon May 26 07:05:56 2014 UTC +++ /branches/bleeding_edge/tools/generate-runtime-tests.py Wed May 28 09:52:38 2014 UTC
@@ -288,6 +288,12 @@
     # 'foo' + 'bar'
     return self._Variable(name, "\"%s\" + \"%s\"" % (s1, s2))

+  def _SeqTwoByteString(self, name):
+    s1 = self._RawRandomString(1, 5)
+    s2 = self._RawRandomString(1, 5)
+    # 'foo' + unicode + 'bar'
+    return self._Variable(name, "\"%s\" + \"\\2082\" + \"%s\"" % (s1, s2))
+
   def _SlicedString(self, name):
     s = self._RawRandomString(20, 30)
     # 'ffoo12345678901234567890'.substr(1)
@@ -674,7 +680,9 @@
     "Number": ["1.5", _Number],
     "Object": ["new Object()", _Object],
     "PropertyDetails": ["513", _PropertyDetails],
+    "SeqOneByteString": ["\"seq 1-byte\"", _SeqString],
     "SeqString": ["\"seqstring\"", _SeqString],
+    "SeqTwoByteString": ["\"seq \\u2082-byte\"", _SeqTwoByteString],
     "Smi": ["1", _Smi],
     "StrictMode": ["1", _StrictMode],
     "String": ["\"foo\"", _String],

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to