Index: test/webkit/dfg-to-string-on-cell.js |
diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/dfg-to-string-on-cell.js |
similarity index 85% |
copy from test/webkit/resources/standalone-post.js |
copy to test/webkit/dfg-to-string-on-cell.js |
index d157e78bfa084329e2ec1a9b7d6ad456e904c152..8ae7388c5f3617c5326000a831e72f071c6d0a3c 100644 |
--- a/test/webkit/resources/standalone-post.js |
+++ b/test/webkit/dfg-to-string-on-cell.js |
@@ -21,6 +21,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-wasPostTestScriptParsed = true; |
+description("Tests that ToString on a cell works."); |
+ |
+function foo(a, o) { |
+ return [a, String(o)]; |
+} |
+ |
+for (var i = 0; i < 100; ++i) |
+ shouldBe("\"\" + foo(\"foo\", i % 2 ? \"hello\" : [1, 2, 3])", i % 2 ? "\"foo,hello\"" : "\"foo,1,2,3\""); |
-finishJSTest(); |