aboutsummaryrefslogtreecommitdiff
path: root/test/data/html/test-document2-frame1.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-04 16:56:06 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-04 16:56:06 -0400
commitae246093a98ab1386c4422306928091f30a27fda (patch)
tree6eb0481ec64dd20613154402e678db0b84a6d84f /test/data/html/test-document2-frame1.html
parenta0c4ce779d35cab39c62ca42ad3fe58a82faa1bb (diff)
Create some tests for fullscreen elements, <iframe>s, and shadow DOMs
Diffstat (limited to 'test/data/html/test-document2-frame1.html')
-rw-r--r--test/data/html/test-document2-frame1.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/data/html/test-document2-frame1.html b/test/data/html/test-document2-frame1.html
new file mode 100644
index 00000000..3b85cdc5
--- /dev/null
+++ b/test/data/html/test-document2-frame1.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
+ <title>Yomichan Tests</title>
+ <script src="test-document2-script.js"></script>
+ <style>
+body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ padding: 0;
+ margin: 0;
+ background-color: #f8f8f8;
+}
+a, a:visited {
+ color: #1080c0;
+ text-decoration: underline;
+}
+.content {
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ padding: 0.5em;
+ background-color: #f8f8f8;
+}
+ </style>
+ </head>
+<body><div class="content">
+<div>
+ ありがとう
+</div>
+<div>
+ <a href="#" id="fullscreen-link">Toggle fullscreen</a>
+ <script>
+document.querySelector('#fullscreen-link').addEventListener('click', () => toggleFullscreen(document.body), false);
+ </script>
+</div>
+</div></body>
+</html> \ No newline at end of file