2020-04-04 20:56:06 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
|
|
<title>Yomichan Manual Tests</title>
|
|
|
|
<link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw==" />
|
|
|
|
<link rel="stylesheet" href="test-stylesheet.css" />
|
|
|
|
<script src="test-document2-script.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h1>Yomichan Manual Tests</h1>
|
2020-05-10 18:09:04 +00:00
|
|
|
<y-description>Manual tests involving fullscreen elements, <iframe>s, and shadow DOMs.</y-description>
|
2020-04-04 20:56:06 +00:00
|
|
|
|
2020-05-10 18:09:04 +00:00
|
|
|
<y-test>
|
|
|
|
<y-description>Standard content.</y-description>
|
|
|
|
<div class="fullscreen-element" style="width: 100%; height: 200px; border: 1px solid #d8d8d8; position: relative;"><div style="background-color: #f8f8f8; padding: 0.5em; position: absolute; left: 0; top: 0; bottom: 0; right: 0;">
|
2020-04-04 20:56:06 +00:00
|
|
|
<div>
|
|
|
|
ありがとう
|
|
|
|
</div>
|
|
|
|
<div>
|
2020-05-10 18:09:04 +00:00
|
|
|
<a href="#" class="fullscreen-link">Toggle fullscreen</a>
|
2020-04-04 20:56:06 +00:00
|
|
|
</div>
|
|
|
|
</div></div>
|
2020-05-10 18:09:04 +00:00
|
|
|
</y-test>
|
2020-04-04 20:56:06 +00:00
|
|
|
|
2020-05-10 18:09:04 +00:00
|
|
|
<y-test data-shadow-mode="open">
|
|
|
|
<y-description>Content inside of an open shadow DOM.</y-description>
|
|
|
|
<div class="template-content-container"></div>
|
|
|
|
<template>
|
2020-04-04 20:56:06 +00:00
|
|
|
<link rel="stylesheet" href="test-stylesheet.css" />
|
2020-05-10 18:09:04 +00:00
|
|
|
<div class="fullscreen-element" style="width: 100%; height: 200px; border: 1px solid #d8d8d8; position: relative;"><div style="background-color: #f8f8f8; padding: 0.5em; position: absolute; left: 0; top: 0; bottom: 0; right: 0;">
|
2020-04-04 20:56:06 +00:00
|
|
|
<div>
|
|
|
|
ありがとう
|
|
|
|
</div>
|
|
|
|
<div>
|
2020-05-10 18:09:04 +00:00
|
|
|
<a href="#" class="fullscreen-link">Toggle fullscreen</a>
|
2020-04-04 20:56:06 +00:00
|
|
|
</div>
|
|
|
|
</div></div>
|
|
|
|
</template>
|
2020-05-10 18:09:04 +00:00
|
|
|
</y-test>
|
2020-04-04 20:56:06 +00:00
|
|
|
|
2020-05-10 18:09:04 +00:00
|
|
|
<y-test data-shadow-mode="closed">
|
|
|
|
<y-description>Content inside of a closed shadow DOM.</y-description>
|
|
|
|
<div class="template-content-container"></div>
|
|
|
|
<template>
|
|
|
|
<link rel="stylesheet" href="test-stylesheet.css" />
|
|
|
|
<div class="fullscreen-element" style="width: 100%; height: 200px; border: 1px solid #d8d8d8; position: relative;"><div style="background-color: #f8f8f8; padding: 0.5em; position: absolute; left: 0; top: 0; bottom: 0; right: 0;">
|
|
|
|
<div>
|
|
|
|
ありがとう
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a href="#" class="fullscreen-link">Toggle fullscreen</a>
|
|
|
|
</div>
|
|
|
|
</div></div>
|
|
|
|
</template>
|
|
|
|
</y-test>
|
|
|
|
|
|
|
|
<y-test>
|
|
|
|
<y-description><iframe> element.</y-description>
|
2020-04-05 00:21:39 +00:00
|
|
|
<iframe src="test-document2-frame1.html" allowfullscreen="true" style="width: 100%; height: 200px; border: 1px solid #d8d8d8;"></iframe>
|
2020-05-10 18:09:04 +00:00
|
|
|
</y-test>
|
2020-04-04 20:56:06 +00:00
|
|
|
|
2020-05-10 18:09:04 +00:00
|
|
|
<y-test data-shadow-mode="open">
|
|
|
|
<y-description><iframe> element inside of an open shadow DOM.</y-description>
|
|
|
|
<div class="template-content-container"></div>
|
|
|
|
<template>
|
2020-04-05 00:21:39 +00:00
|
|
|
<iframe src="test-document2-frame1.html" allowfullscreen="true" style="width: 100%; height: 200px; border: 1px solid #d8d8d8;"></iframe>
|
2020-04-04 20:56:06 +00:00
|
|
|
</template>
|
2020-05-10 18:09:04 +00:00
|
|
|
</y-test>
|
2020-04-04 20:56:06 +00:00
|
|
|
|
2020-05-10 18:09:04 +00:00
|
|
|
<y-test data-shadow-mode="closed">
|
|
|
|
<y-description><iframe> element inside of a closed shadow DOM.</y-description>
|
|
|
|
<div class="template-content-container"></div>
|
|
|
|
<template>
|
2020-04-17 21:33:49 +00:00
|
|
|
<iframe src="test-document2-frame1.html" allowfullscreen="true" style="width: 100%; height: 200px; border: 1px solid #d8d8d8;"></iframe>
|
|
|
|
</template>
|
2020-05-10 18:09:04 +00:00
|
|
|
</y-test>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
for (const element of document.querySelectorAll('y-test')) {
|
|
|
|
setup(element);
|
|
|
|
}
|
|
|
|
</script>
|
2020-04-17 21:33:49 +00:00
|
|
|
|
2020-04-04 20:56:06 +00:00
|
|
|
</body>
|
2020-04-17 21:33:49 +00:00
|
|
|
</html>
|