Skip to content

Commit

Permalink
test: kiwisizing (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamkamat committed Jun 1, 2022
1 parent 076a221 commit 86808ca
Show file tree
Hide file tree
Showing 6 changed files with 33,540 additions and 2 deletions.
25 changes: 23 additions & 2 deletions tests/integrations/event-forwarding/index.html
Expand Up @@ -8,7 +8,7 @@

<script>
partytown = {
forward: ['superDuperFunction', 'superArray.push'],
forward: ['superDuperFunction', 'superArray.push','KiwiSizing'],
logCalls: true,
logGetters: true,
logSetters: true,
Expand Down Expand Up @@ -64,7 +64,23 @@
})();
</script>

<style>
<script type='text/partytown'>
(function () {
window.KiwiSizing = window.KiwiSizing === undefined ? {} : window.KiwiSizing;
KiwiSizing.data = {
collections: "211448987800",
}

console.log("Before KiwiSizing", KiwiSizing)
console.log("Before KiwiSizing.data", KiwiSizing.data)
})();
</script>
<script type="text/partytown">
console.log("KiwiSizing", KiwiSizing)
console.log("KiwiSizing.data", KiwiSizing.data)
window.document.getElementById("kiwisizing").innerText = KiwiSizing.data;
</script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
Apple Color Emoji, Segoe UI Emoji;
Expand Down Expand Up @@ -134,6 +150,10 @@ <h1>Integration Event Forwarding</h1>
})();
</script>
</li>
<li>
<strong>Kiwi sizing</strong>
<code id="kiwisizing"></code>
</li>
</ul>

<script type="text/partytown">
Expand All @@ -142,5 +162,6 @@ <h1>Integration Event Forwarding</h1>

<hr />
<p><a href="/tests/">All Tests</a></p>
<hr />
</body>
</html>

1 comment on commit 86808ca

@vercel
Copy link

@vercel vercel bot commented on 86808ca 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.