Skip to content

Commit

Permalink
[] Add HTML files to fixtures folder
Browse files Browse the repository at this point in the history
  • Loading branch information
istateside committed Feb 18, 2021
1 parent 0b33d92 commit 3b71e78
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cypress/fixtures/frame-one.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html>
<body>
<main style="background-color: yellow; height: 100%; padding: 50px;">
<iframe style="width: 100%; height: 100%; " src="./frame-two.html"></iframe>
</main>
</body>

<style>
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
</style>
</html>

22 changes: 22 additions & 0 deletions cypress/fixtures/frame-two.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html>
<body>
<main style="background-color: blue; height: 100%; padding: 50px;">
<div id="target"></div>
</main>
</body>

<script type="text/javascript">
document.getElementById('target').onclick = function(e) { e.target.textContent = "clicked" };
</script>

<style>
#target { width: 100px; height: 100px; background: green; }
#target:hover { background: pink; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
</style>
</html>

14 changes: 14 additions & 0 deletions cypress/fixtures/iframe-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html>
<body>
<main style="background-color: red; height: 100%; padding: 50px;">
<iframe style="width: 100%; height: 100%; " src="./frame-one.html"></iframe>
</main>
</body>

<style>
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
</style>
</html>

0 comments on commit 3b71e78

Please sign in to comment.