From 17a9a6417a2157fbcc2e8f5190cabd27cc65a230 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 4 May 2019 10:46:59 -0700 Subject: [PATCH] Fixed test failure in Firefox 66.0.2 --- spec/html/PrettyPrintHtmlSpec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/html/PrettyPrintHtmlSpec.js b/spec/html/PrettyPrintHtmlSpec.js index 4ff969b3..b4eb1158 100644 --- a/spec/html/PrettyPrintHtmlSpec.js +++ b/spec/html/PrettyPrintHtmlSpec.js @@ -21,7 +21,8 @@ describe("jasmineUnderTest.pp (HTML Dependent)", function () { it("should print Firefox's wrapped native objects correctly", function() { if(jasmine.getEnv().firefoxVersion) { try { new CustomEvent(); } catch(e) { var err = e; }; - expect(jasmineUnderTest.pp(err)).toMatch(/Not enough arguments/); + // Different versions of FF produce different error messages. + expect(jasmineUnderTest.pp(err)).toMatch(/Not enough arguments|CustomEvent requires at least 1 argument, but only 0 were passed/); } });