Skip to content

Commit

Permalink
Correct failure reason in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weizman committed Sep 7, 2023
1 parent b5e0605 commit 1c8faa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 1c8faa8

Please sign in to comment.