Fixed test failure in Firefox 66.0.2

This commit is contained in:
Steve Gravrock
2019-05-04 10:46:59 -07:00
parent d856b0548a
commit 17a9a6417a

View File

@@ -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/);
}
});