-
-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
97 additions
and
95 deletions.
There are no files selected for viewing
49 changes: 24 additions & 25 deletions
49
lib/PuppeteerSharp.TestServer/wwwroot/frames/nested-frames.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
<style> | ||
body { | ||
display: flex; | ||
} | ||
|
||
body iframe { | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
} | ||
::-webkit-scrollbar{ | ||
display: none; | ||
} | ||
</style> | ||
<script> | ||
async function attachFrame(frameId, url) { | ||
var frame = document.createElement('iframe'); | ||
frame.src = url; | ||
frame.id = frameId; | ||
document.body.appendChild(frame); | ||
await new Promise(x => frame.onload = x); | ||
return 'kazakh'; | ||
} | ||
</script> | ||
<iframe src='./two-frames.html'></iframe> | ||
<iframe src='./frame.html'></iframe> | ||
<style> | ||
body { | ||
display: flex; | ||
} | ||
|
||
body iframe { | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
} | ||
|
||
::-webkit-scrollbar { | ||
display: none; | ||
} | ||
</style> | ||
<script>async function attachFrame(frameId, url) { | ||
var frame = document.createElement('iframe'); | ||
frame.src = url; | ||
frame.id = frameId; | ||
document.body.appendChild(frame); | ||
await new Promise(x => frame.onload = x); | ||
return 'kazakh'; | ||
}</script> | ||
<iframe src='./two-frames.html' name='2frames'></iframe> | ||
<iframe src='./frame.html' name='aframe'></iframe> |
26 changes: 13 additions & 13 deletions
26
lib/PuppeteerSharp.TestServer/wwwroot/frames/two-frames.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<style> | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
body iframe { | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
} | ||
</style> | ||
<iframe src='./frame.html'></iframe> | ||
<iframe src='./frame.html'></iframe> | ||
<style> | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
body iframe { | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
} | ||
</style> | ||
<iframe src='./frame.html' name='uno'></iframe> | ||
<iframe src='./frame.html' name='dos'></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<title>Woof-Woof</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
<style> | ||
:root { | ||
font-family: monospace; | ||
} | ||
|
||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
div { | ||
width: 10ch; | ||
word-wrap: break-word; | ||
border: 1px solid blue; | ||
transform: rotate(33deg); | ||
line-height: 8ch; | ||
padding: 2ch; | ||
} | ||
|
||
a { | ||
margin-left: 7ch; | ||
} | ||
</style> | ||
<div> | ||
<a href='#clicked'>123321</a> | ||
</div> | ||
<script> | ||
</script> | ||
<style> | ||
:root { | ||
font-family: monospace; | ||
} | ||
|
||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
div { | ||
width: 10ch; | ||
word-wrap: break-word; | ||
border: 1px solid blue; | ||
transform: rotate(33deg); | ||
line-height: 8ch; | ||
padding: 2ch; | ||
} | ||
|
||
a { | ||
margin-left: 7ch; | ||
} | ||
</style> | ||
<div> | ||
<a href='#clicked'>123321</a> | ||
</div> | ||
<script> | ||
document.querySelector('a').addEventListener('click', () => { | ||
window.__clicked = true; | ||
});</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters