Web fixes.
This commit is contained in:
1 parent
914d174925
commit
453206b85b
11 files changed
+643
-25
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="en"><meta charset="utf-8"><title>Cthulhu Browser Probe</title>
|
||||
<h1 tabindex="0">Action fixture start</h1>
|
||||
<iframe title="Mode header" srcdoc="<!doctype html><body onload='document.onclick=function(event){if(event.target.closest("a")) parent.chooseMode(event.target.closest("a").id)}'><a id='Basic'>BASIC</a> <a id='Advanced'>ADVANCED</a><p>Plain header text</p></body>"></iframe>
|
||||
<iframe id="content" title="Mode content" srcdoc="<!doctype html><p>Initial mode content</p>"></iframe>
|
||||
<p>Plain body text</p>
|
||||
<div id="custom" onclick="this.setAttribute('aria-label', 'Custom activated')"><span>Custom action</span><button>Nested button</button></div>
|
||||
<a id="inactive">Anchor without action</a>
|
||||
<a id="hidden" hidden onclick="chooseMode('Hidden')">Hidden action</a>
|
||||
<a id="ordinary" href="#destination"><span>Ordinary link</span></a>
|
||||
<p id="destination">Destination</p>
|
||||
<script>
|
||||
function chooseMode(mode) {
|
||||
document.getElementById('content').srcdoc = '<!doctype html><p>' + mode + ' mode content</p>';
|
||||
document.querySelector('h1').setAttribute('aria-label', mode + ' activated');
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="en"><meta charset="utf-8"><title>Cthulhu Browser Probe</title>
|
||||
<style>
|
||||
body { margin: 8px; }
|
||||
.row { height: 60px; }
|
||||
a { display: block; position: relative; width: 140px; }
|
||||
.center { left: calc(50% - 70px); }
|
||||
.right { left: calc(100% - 140px); }
|
||||
@media (max-width: 1000px) { main { margin-top: 1000px; } }
|
||||
</style>
|
||||
<h1 tabindex="0">Sound fixture start</h1>
|
||||
<main>
|
||||
<div class="row"><a href="#destination"><span>Left link label</span></a></div>
|
||||
<div class="row"><a class="center" href="#destination"><span>Center link label</span></a></div>
|
||||
<div class="row"><a class="right" href="#destination"><span>Right link label</span></a></div>
|
||||
</main>
|
||||
<p id="destination">Destination</p>
|
||||
</html>
|
||||
@@ -12,6 +12,8 @@ from native_test_session import run_private_session
|
||||
|
||||
|
||||
BROWSER_PROOFS = {
|
||||
"actions": ("./internal/app", "^TestNativeBrowserActionOwnership$", 35, 40, "browser-actions.html"),
|
||||
"link-sounds": ("./internal/app", "^TestNativeBrowserCaretLinkSounds$", 40, 45, "browser-link-sounds.html"),
|
||||
"article": ("./internal/atspi", "^TestNativeBrowserArticleContext$", 30, 35, "browser-article.html"),
|
||||
"emoji": ("./internal/app", "^TestNativeBrowserEmoji$", 35, 40, "browser-emoji.html"),
|
||||
"structural-focus": ("./internal/app", "^TestNativeBrowserStructuralFocus$", 45, 50),
|
||||
|
||||
Reference in new issue
Block a user