From 1c8faa81291e6f6dffe62b7106eff2492213375d Mon Sep 17 00:00:00 2001 From: weizman Date: Thu, 7 Sep 2023 15:43:24 +0300 Subject: [PATCH] Correct failure reason in tests --- test/edge.js | 2 +- test/shadow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/edge.js b/test/edge.js index b044abc..f6ca84d 100644 --- a/test/edge.js +++ b/test/edge.js @@ -301,7 +301,7 @@ describe('special cases', () => { setTimeout(top.bypass, 100, [window]); }()); }); - expect(result).toBe(generateErrorMessage(ERR_HTML_FRAMES_SRCDOC_BLOCKED)); + expect(result).toBe('V'); }); it('should fail to use atob of an iframe of javascript: URI created with srcdoc with innerHTML', async function () { diff --git a/test/shadow.js b/test/shadow.js index f2fa18d..e647dd7 100644 --- a/test/shadow.js +++ b/test/shadow.js @@ -137,7 +137,7 @@ describe('test shadow DOM', async function () { bypass([{atob: top.myatob || atob, alert: top.myalert || alert}]); }()); }); - expect(result).toBe(generateErrorMessage(ERR_HTML_FRAMES_SRCDOC_BLOCKED)); + expect(result).toBe('V'); }); it('should fail to use atob of an iframe that is attached via declarative shadow DOM through srcdoc and javascript URI', async function () {