From 27c434e2bd3591568b49add238c391f1ed3e90fe Mon Sep 17 00:00:00 2001 From: Itms Date: Fri, 2 Sep 2016 16:47:33 +0000 Subject: [PATCH] SpiderMonkey 38 upgrade: 29/35 We now have better error messages, so fix the tests to account for that. Patch by leper. This was SVN commit r18683. --- source/scriptinterface/tests/test_ScriptInterface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/scriptinterface/tests/test_ScriptInterface.h b/source/scriptinterface/tests/test_ScriptInterface.h index 8ac2c78d75..c4fcbb25d7 100644 --- a/source/scriptinterface/tests/test_ScriptInterface.h +++ b/source/scriptinterface/tests/test_ScriptInterface.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Wildfire Games. +/* Copyright (C) 2015 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -40,7 +40,7 @@ public: ScriptInterface script("Test", "Test", g_ScriptRuntime); TestLogger logger; TS_ASSERT(!script.LoadScript(L"test.js", "1+")); - TS_ASSERT_STR_CONTAINS(logger.GetOutput(), "JavaScript error: test.js line 1\nSyntaxError: syntax error"); + TS_ASSERT_STR_CONTAINS(logger.GetOutput(), "JavaScript error: test.js line 1\nSyntaxError: expected expression, got end of script"); } void test_loadscript_strict_warning()