Name Description Size Coverage
__init__.py 0 -
assets -
chrome_handler_mixin.py 799 -
data -
test_accessibility.py 8995 -
test_actions_key.py 2621 -
test_actions_pointer.py if (window.click_x && window.click_y) { return {x: window.click_x, y: window.click_y}; } 4586 -
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_chrome.py 1138 -
test_chrome_action.py 2203 -
test_chrome_checkbox.py 1241 -
test_chrome_click.py 1218 -
test_chrome_element_css.py const [el, prop] = arguments; const elStyle = window.getComputedStyle(el); return elStyle[prop]; 1372 -
test_chrome_element_id.py 3806 -
test_chrome_element_rect.py 1179 -
test_chrome_element_state.py 2198 -
test_chrome_findelement.py 6519 -
test_chrome_get_current_url.py 1747 -
test_chrome_pagesource.py 1036 -
test_chrome_screenshot.py let el = document.documentElement; let rect = el.getBoundingClientRect(); return [rect.width, rect.height]; 4018 -
test_chrome_sendkeys_menupopup.py 4250 -
test_chrome_switch_frame.py 2289 -
test_chrome_switch_window.py 4850 -
test_chrome_text.py 1400 -
test_chrome_title.py 1205 -
test_chrome_window_close.py 3381 -
test_chrome_window_handles.py 10856 -
test_chrome_window_status.py 645 -
test_chrome_window_type.py 1119 -
test_cli_arguments.py 2275 -
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> 17391 -
test_click_scrolling.py <a href="#content">Link to content</a> <div id="content" style="margin-top: 205vh;">Text</div> 6685 -
test_context.py 3272 -
test_cookies.py 4639 -
test_crash.py Mock object to replace original mozcrash methods. 7465 -
test_data_driven.py 2197 -
test_date_time_value.py 1212 -
test_element_id.py 1870 -
test_element_rect.py <a href="#">link</a> 779 -
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> 6020 -
test_errors.py 3339 -
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> 19954 -
test_expected.py <p>foo</p> 9202 -
test_expectedfail.py 393 -
test_file_upload.py <form action='{}' method=post enctype='multipart/form-data'> <input type=file> <input type=submit> </form> 5043 -
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> 19745 -
test_geckoinstance.py Test that the correct gecko instance is determined. 1038 -
test_generate_test_report.py 659 -
test_get_computed_label.py 1001 -
test_get_computed_role.py 987 -
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> 2309 -
test_implicit_waits.py 1107 -
test_localization.py 1748 -
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; 35250 -
test_pagesource.py 2090 -
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> 1322 -
test_prefs.py let pref = arguments[0]; let tempDir = Services.dirsvc.get("TmpD", Ci.nsIFile); Services.prefs.setComplexValue(pref, Ci.nsIFile, tempDir); return tempDir.path; 9142 -
test_prefs_enforce.py 2019 -
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; 21391 -
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> 1039 -
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> 10684 -
test_select.py <select> <option>first <option>second </select> 6251 -
test_session.py 1666 -
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> 4074 -
test_skip_setup.py 926 -
test_switch_frame.py 3629 -
test_switch_window.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; } } 10608 -
test_teardown_context_preserved.py 815 -
test_text.py 1021 -
test_timeouts.py var callback = arguments[arguments.length - 1]; setTimeout(function() { callback(true); }, 500); 4192 -
test_title.py 548 -
test_transport.py 3549 -
test_typing.py 15729 -
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> 6574 -
test_wait.py 10604 -
test_window_close.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]); 4747 -
test_window_handles.py 6696 -
test_window_management.py 5607 -
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.py 3887 -
test_windowless.py 2303 -
unit-tests.toml 2874 -