[gjs/mozjs78: 49/50] tests: Fix call args tests to match SpiderMonkey 78 error messages




commit 5bbf83fa54076711cf311e3f0b0eab4a5eae91e2
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Aug 1 14:50:02 2020 -0700

    tests: Fix call args tests to match SpiderMonkey 78 error messages
    
    The tests here depend on the text of certain error messages, which were
    changed in SpiderMonkey 78.
    
    See: GNOME/gjs#329

 test/gjs-test-call-args.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/test/gjs-test-call-args.cpp b/test/gjs-test-call-args.cpp
index 670e1d70..584745e9 100644
--- a/test/gjs-test-call-args.cpp
+++ b/test/gjs-test-call-args.cpp
@@ -361,11 +361,11 @@ gjs_test_add_tests_for_parse_call_args(void)
                              "optionalIntArgsNoAssert(1, 2, 3)"
                              "//*Expected minimum 1 arguments (and 1 optional), got 3");
     ADD_CALL_ARGS_TEST_XFAIL("too-few-args-fails",
-                             "intArgNoAssert()//*requires at least 1 argument, "
-                             "but only 0 were passed");
+                             "intArgNoAssert()//*At least 1 argument required, "
+                             "but only 0 passed");
     ADD_CALL_ARGS_TEST_XFAIL("too-few-args-fails-with-optional",
-                             "optionalIntArgsNoAssert()//*requires at least 1 "
-                             "argument, but only 0 were passed");
+                             "optionalIntArgsNoAssert()//*At least 1 argument "
+                             "required, but only 0 passed");
     ADD_CALL_ARGS_TEST("args-ignores-trailing", "argsIgnoreTrailing(1, 2, 3)");
     ADD_CALL_ARGS_TEST("one-of-each-type-works",
                        "oneOfEachType(true, 'foo', 'foo', 1, 1, 1, 1, {})");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]