data |
|
|
test_accessibility.py |
|
9111 |
test_actions_key.py |
|
2631 |
test_actions_pointer.py |
if (window.click_x && window.click_y) {
return {x: window.click_x, y: window.click_y};
}
|
4596 |
test_actions_wheel.py |
|
2641 |
test_capabilities.py |
return {
name: Services.appinfo.name,
version: Services.appinfo.version,
processID: Services.appinfo.processID,
buildID: Services.appinfo.appBuildID,
}
|
14029 |
test_checkbox.py |
|
637 |
test_checkbox_chrome.py |
|
1104 |
test_chrome.py |
|
1138 |
test_chrome_action.py |
|
2065 |
test_chrome_element_css.py |
const [el, prop] = arguments;
const elStyle = window.getComputedStyle(el);
return elStyle[prop]; |
1372 |
test_cli_arguments.py |
|
4102 |
test_click.py |
<style>
* { margin: 0; padding: 0; }
body { height: 300vh }
div, a { display: block }
div {
background-color: pink;
position: fixed;
width: 100%;
height: 40px;
top: 0;
}
a {
margin-top: 1000px;
}
</style>
<div>overlay</div>
<a href=#>link</a>
<script>
window.clicked = false;
let link = document.querySelector("a");
link.addEventListener("click", () => window.clicked = true);
</script>
|
17488 |
test_click_chrome.py |
|
1059 |
test_click_scrolling.py |
<a href="#content">Link to content</a>
<div id="content" style="margin-top: 205vh;">Text</div>
|
5831 |
test_context.py |
|
3272 |
test_cookies.py |
|
4639 |
test_crash.py |
Mock object to replace original mozcrash methods. |
7465 |
test_data_driven.py |
|
2218 |
test_date_time_value.py |
|
1222 |
test_element_id.py |
|
1870 |
test_element_id_chrome.py |
|
3244 |
test_element_rect.py |
<a href="#">link</a> |
789 |
test_element_rect_chrome.py |
|
1042 |
test_element_state.py |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>XHTML might be the future</title>
</head>
<body>
{}
</body>
</html> |
6127 |
test_element_state_chrome.py |
|
2061 |
test_errors.py |
|
3395 |
test_execute_async_script.py |
var callback = arguments[arguments.length - 1];
setTimeout(function() { callback(true); }, 500);
|
7664 |
test_execute_isolate.py |
let [resolve] = arguments;
setTimeout(function() {{ resolve(10{}); }}, 5000);
|
1561 |
test_execute_sandboxes.py |
let result = Ci.nsIPermissionManager.ALLOW_ACTION;
arguments[0](result);
|
3246 |
test_execute_script.py |
<style>
custom-checkbox-element {
display:block; width:20px; height:20px;
}
</style>
<custom-checkbox-element></custom-checkbox-element>
<script>
customElements.define('custom-checkbox-element',
class extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: '%s'}).innerHTML = `
<div><input type="checkbox"/></div>
`;
}
});
</script> |
19333 |
test_expected.py |
<p>foo</p> |
9212 |
test_expectedfail.py |
|
393 |
test_file_upload.py |
<form action='{}' method=post enctype='multipart/form-data'>
<input type=file>
<input type=submit>
</form> |
5099 |
test_findelement.py |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>XHTML might be the future</title>
</head>
<body>
{}
</body>
</html> |
19766 |
test_findelement_chrome.py |
|
6483 |
test_geckoinstance.py |
Test that the correct gecko instance is determined. |
1038 |
test_get_computed_label.py |
|
1011 |
test_get_computed_role.py |
|
997 |
test_get_current_url_chrome.py |
|
1582 |
test_get_shadow_root.py |
<style>
custom-checkbox-element {
display:block; width:20px; height:20px;
}
</style>
<custom-checkbox-element></custom-checkbox-element>
<script>
customElements.define('custom-checkbox-element',
class extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: '%s'}).innerHTML = `
<div><input type="checkbox"/></div>
`;
}
});
</script> |
2352 |
test_implicit_waits.py |
|
1107 |
test_localization.py |
|
2296 |
test_marionette.py |
Test that the correct test name gets set. |
5594 |
test_modal_dialogs.py |
return window.browsingContext.id;
|
5672 |
test_navigation.py |
const { AppConstants } = ChromeUtils.importESModule(
"resource://gre/modules/AppConstants.sys.mjs"
);
let win = null;
if (AppConstants.MOZ_APP_NAME == "fennec") {
win = Services.wm.getMostRecentWindow("navigator:browser");
} else {
const { BrowserWindowTracker } = ChromeUtils.importESModule(
"resource:///modules/BrowserWindowTracker.sys.mjs"
);
win = BrowserWindowTracker.getTopWindow();
}
let tabBrowser = null;
// Fennec
if (win.BrowserApp) {
tabBrowser = win.BrowserApp.selectedBrowser;
// Firefox
} else if (win.gBrowser) {
tabBrowser = win.gBrowser.selectedBrowser;
} else {
return null;
}
return tabBrowser.isRemoteBrowser;
|
35352 |
test_pagesource.py |
|
2100 |
test_pagesource_chrome.py |
|
944 |
test_position.py |
<head>
<title>Rectangles</title>
<style>
div {
position: absolute;
margin: 0;
border: 0;
padding: 0;
}
#r {
background-color: red;
left: 11px;
top: 10px;
width: 48.666666667px;
height: 49.333333333px;
}
</style>
</head>
<body>
<div id="r">r</div>
</body>
|
1332 |
test_prefs.py |
|
8738 |
test_prefs_enforce.py |
|
2031 |
test_profile_management.py |
|
10180 |
test_proxy.py |
const { Preferences } = ChromeUtils.importESModule(
"resource://gre/modules/Preferences.sys.mjs"
);
Preferences.resetBranch("network.proxy");
|
5488 |
test_quit_restart.py |
return Services.appinfo.inSafeMode;
|
21547 |
test_reftest.py |
|
3894 |
test_rendered_element.py |
<div style="color: green;" id="parent">
<p id="green">This should be green</p>
<p id="red" style="color: red;">But this is red</p>
</div>
|
1049 |
test_report.py |
|
625 |
test_run_js_test.py |
|
327 |
test_screen_orientation.py |
|
2917 |
test_screenshot.py |
<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20">
<rect height="20" width="20"/>
</svg> |
14352 |
test_select.py |
<select>
<option>first
<option>second
</select> |
6261 |
test_sendkeys_menupopup_chrome.py |
|
4159 |
test_session.py |
|
1698 |
test_set_permission.py |
return navigator.permissions.query(arguments[0]).then(status => status.state)
|
2188 |
test_shadowroot_findelement.py |
<custom-element></custom-element>
<script>
customElements.define('custom-element',
class extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: 'open'}).innerHTML = `
<div><a href=# id=foo>full link text</a><a href=# id=bar>another link text</a></div>
`;
}
});
</script> |
4084 |
test_skip_setup.py |
|
926 |
test_switch_frame.py |
|
3629 |
test_switch_frame_chrome.py |
|
2152 |
test_switch_window_chrome.py |
|
5023 |
test_switch_window_content.py |
const { AppConstants } = ChromeUtils.importESModule(
"resource://gre/modules/AppConstants.sys.mjs"
);
let win = null;
if (AppConstants.MOZ_APP_NAME == "fennec") {
win = Services.wm.getMostRecentWindow("navigator:browser");
} else {
const { BrowserWindowTracker } = ChromeUtils.importESModule(
"resource:///modules/BrowserWindowTracker.sys.mjs"
);
win = BrowserWindowTracker.getTopWindow();
}
let tabBrowser = null;
// Fennec
if (win.BrowserApp) {
tabBrowser = win.BrowserApp;
// Firefox
} else if (win.gBrowser) {
tabBrowser = win.gBrowser;
} else {
return null;
}
for (let i = 0; i < tabBrowser.tabs.length; i++) {
if (tabBrowser.tabs[i] == tabBrowser.selectedTab) {
return i;
}
}
|
10780 |
test_teardown_context_preserved.py |
|
815 |
test_text.py |
|
1021 |
test_text_chrome.py |
|
1237 |
test_timeouts.py |
var callback = arguments[arguments.length - 1];
setTimeout(function() { callback(true); }, 500);
|
4192 |
test_title.py |
|
558 |
test_title_chrome.py |
return window.document.documentElement.getAttribute('title');
|
1310 |
test_transport.py |
|
3549 |
test_typing.py |
|
15739 |
test_visibility.py |
<meta name="viewport" content="initial-scale=1,width=device-width">
<style>
.element{{
position: absolute;
{}: -50px;
background_color: red;
width: 100px;
height: 100px;
}}
</style>
<div class='element'></div> |
6584 |
test_wait.py |
|
10616 |
test_window_close_chrome.py |
|
3221 |
test_window_close_content.py |
const { BrowserWindowTracker } = ChromeUtils.importESModule(
"resource:///modules/BrowserWindowTracker.sys.mjs"
);
let win = BrowserWindowTracker.getTopWindow();
win.addEventListener("TabBrowserDiscarded", ev => {
arguments[0](true);
}, { once: true});
win.gBrowser.discardBrowser(win.gBrowser.tabs[1]);
|
4620 |
test_window_handles_chrome.py |
|
10654 |
test_window_handles_content.py |
|
6484 |
test_window_management.py |
|
5464 |
test_window_maximize.py |
return {
width: window.screen.availWidth,
height: window.screen.availHeight,
} |
1207 |
test_window_rect.py |
return {
width: window.screen.availWidth,
height: window.screen.availHeight,
} |
13176 |
test_window_status_chrome.py |
|
653 |
test_window_status_content.py |
|
3743 |
test_window_type_chrome.py |
|
959 |
test_windowless.py |
|
2303 |
unit-tests.toml |
|
2770 |