Skip to content

Commit

Permalink
test: update document.implementation test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jun 1, 2022
1 parent 9c0ef6f commit 076a221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/platform/document/document.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ test('document', async ({ page }) => {
await expect(testCreateElementError_).toHaveText('no error');

const testCreateHTMLDocument = page.locator('#testCreateHTMLDocument');
await expect(testCreateHTMLDocument).toHaveText('88mph hidden object');
await expect(testCreateHTMLDocument).toHaveText('88mph hidden BASE');

const testVisibilityState = page.locator('#testVisibilityState');
await expect(testVisibilityState).toHaveText('visible');
Expand Down
5 changes: 1 addition & 4 deletions tests/platform/document/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,10 @@ <h1 class="title">Document</h1>
<script type="text/partytown">
(function () {
const doc = document.implementation.createHTMLDocument();

const elm = document.getElementById('testCreateHTMLDocument');

const addlElm = doc.createElement('base');
const addlElmType = typeof addlElm;

doc.body.textContent = '88mph ' + doc.visibilityState + ' ' + addlElmType;
doc.body.textContent = '88mph ' + doc.visibilityState + ' ' + addlElm.tagName;
elm.textContent = doc.body.textContent;
})();
</script>
Expand Down

1 comment on commit 076a221

@vercel
Copy link

@vercel vercel bot commented on 076a221 Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.