e2e: the select dropdown and the tooltip are measured against RETAIL Firefox 159 driven by Marionette alone, headed (tests/_retail_reference.py, INVPW_RETAIL_FIREFOX set by the leg), not against Playwright's own Firefox; the tooltip joins the row wrapper.e2e.stock_twin (20 tests) and its rule is a cross-check in the record

This commit is contained in:
feder-cr committed 2026-11-28 21:41:56 +01:00
1 parent 5298149cd0
commit e4aa743af3
6 files changed
+364 -141

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@
{"id": "wrapper.unit.page", "giro": "G1", "os": ["linux", "windows"], "min_tests": 72, "exact": true, "tests": ["tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_page_number_follows_the_call.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_the_hand_over_of_a_popup_holds_under_concurrency.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py"], "marker": "unit", "needs_root": false, "note": "72 = 44 + 3+9+5+1+10 of the popup hand-over (24 counted at the collection before; was 20 = 3+8+1+8 before 6200bc2). The page dispatcher's wait for Page.ready and what it hands over; the drive gate goes through the core (the engine waits for the session's road)."},
{"id": "wrapper.e2e.compositing", "giro": "G2", "os": ["linux", "windows"], "min_tests": 9, "exact": true, "tests": ["tests/test_software_compositing_is_declared_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The engine DECLARES software compositing on every machine (core: the compositing entries of zoom.stealth.gfx.feature_status carry the VM decision, and on Windows gfx.webrender.software=true, gfx.webrender.software.d3d11=false). 3 = (1) the compositor read from a privileged context is 'WebRender (Software)' on Windows and on Linux (windowUtils.layerManagerType of each window: Troubleshoot.snapshot().graphics throws on this engine, `ext is null`, so it is not the route); (2) the GPU process uses under 1.5 s of CPU on the fixed 10-scene loop of one browser (Windows runner: 0.32 s declared, 2.7-4.2 s not, runs 43652292533 and 43642744101; on Linux it is held to the bound if a GPU process exists); (3) the 86 keys of the page-bytes probe plus the canvas 2D scenes (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients) equal tests/data/page_bytes_<os>.json, PNGs on decoded pixels. EXPECTED RED on the core 64.71.0 (tests 1 and 2 on Windows). The reference of Windows holds the 75 stable keys and 6 of the 11 PNG keys of run 43652292533; the five other PNG keys and the new canvas keys, and all of Linux, are written from the first run on the engine of the reference (the failure of test 3 prints RECORD-BEGIN ... RECORD-END with the entries to merge): a reference that is not complete is red, never skipped. 9 = those 3 + the 6 families of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py (from firefox-66, engine_at_least): a screenshot draws the text of Arial, Times New Roman, Consolas and Segoe UI, with accents, the typographic apostrophe, the euro sign, Chinese, Arabic and Russian, and of MS PGothic (face 2 of msgothic5_32.ttc: Japanese and Latin) and NSimSun (face 1 of simsun.ttc: Chinese), two faces that are not the first of their collection, with the same bytes as the content process drew them in a canvas (an SVG image with a foreignObject of the same markup), cut from the same page.screenshot, on both systems and with no threshold. EXPECTED RED on every engine that rebuilds the text in the parent with another font than the bundle (Linux: fontconfig answers DejaVu Sans), and skipped, hence red here, on an engine older than firefox-66. It saves the screenshot, the two boxes and a result.json under RUNNER_TEMP/invpw-evidence.", "runner_image": {"windows": "windows-2022"}},
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 7, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4: every step as stock, and every page left only once its noise is done), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 7 = 3 + 4 (the last two: a `load` that takes 20 s is a step that succeeds, and a `load` that never comes ends in an error that names the wait and the page). Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY).", "stock_firefox": true, "extra_steps": ["fakeweb_profiles"]},
{"id": "wrapper.e2e.stock_twin", "giro": "G2", "os": ["linux", "windows"], "min_tests": 16, "exact": true, "tests": ["tests/test_a_drag_from_the_top_into_a_frame_of_another_site_e2e.py", "tests/test_a_select_dropdown_opens_at_its_element_e2e.py", "tests/test_intersection_and_lazy_loading_in_a_frame_of_another_site_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The stock twins: the same steps on Playwright's own Firefox (the stock Playwright client, p.firefox.launch(), installed for the leg: stock_firefox) and on our engine, one browser at a time, stock first, and the verdict is 'the same as stock' (tests/_stock_twin.py). 16 = the dropdown of a select against its element (top document and frame of another site, 4 scales) + a real drag from the top into a frame of another site (dragend, drop target and count, 4 scales) + what the IntersectionObserver of a scrolled frame of another site reads (8 steps, 4 scales) + when a lazy frame is requested (4 distances, 4 scales). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The three files are in no whole-suite row: stock is installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin", "giro": "G2", "os": ["linux", "windows"], "min_tests": 20, "exact": true, "tests": ["tests/test_a_drag_from_the_top_into_a_frame_of_another_site_e2e.py", "tests/test_a_select_dropdown_opens_at_its_element_e2e.py", "tests/test_a_tooltip_opens_at_the_pointer_e2e.py", "tests/test_intersection_and_lazy_loading_in_a_frame_of_another_site_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The twins of the browser's own popups and of the frame's reads. Two references, one browser at a time, the reference first and ours second, and the verdict is 'the same as the reference' (tests/_stock_twin.py, tests/_retail_reference.py). The select dropdown (4 scales) and the tooltip (4 scales) are measured from chrome scope, against RETAIL Firefox 159 driven by Marionette alone, headed (the leg sets INVPW_RETAIL_FIREFOX to its firefox.exe). The real drag from the top into a frame of another site (4 scales), what the IntersectionObserver of a scrolled frame of another site reads (8 steps, 4 scales) and when a lazy frame is requested (4 distances, 4 scales) are measured against Playwright's own Firefox (stock_firefox), headed, driven by the stock Playwright client. 20 = 4 + 4 + 4 + 4 + 4. Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The files are in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 2, "exact": true, "tests": ["tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "Fontconfig exists only on Linux: the parent of the engine shows <GRE>/fonts to it (FcConfigAppFontAddDir) to rebuild a font from a path and a face index. On Windows DirectWrite opens the file from its path, with no folder to scan and no cache to read, so this test has no Windows counterpart.", "note": "2 = (1) the stand-in that runs the engine under strace stays in the engine's place, as the core launches it (the leader of a process group of its own): a fake engine with a child, no browser; the process the launcher holds lives as long as the fake engine, and the group killed holds strace and the child (the stand-in that exec'd setsid forked and exited 0 at once: candidate 44161687675); (2) the warm launch of the parent reads the bundle from fontconfig's cache and does not scan it again (from firefox-66, engine_at_least). Two launches under strace with the same XDG_CACHE_HOME of the test, the first cold and the second warm: the cold parent opens every font file of <GRE>/fonts (the folder as the disk lists it) before any page and fontconfig writes its cache; the warm parent does not open every one of them, and it opens a *.cache-* file of fontconfig (a few files are opened to be used, so the verdict asks about the whole folder, as a scan does). Scan and drawing are told apart by position: only what the parent opens before the first page counts (the opens that draw are written as after_startup). Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-cache: the interval and the number of opens of the bundle, the names of the files of the bundle each launch opened before the first page, the size of the cache file, the VmRSS of the parent after about:blank and after a page with every family, and a third launch with gfx.bundled-fonts.activate=0 (the behaviour before), which is evidence only. Needs strace on the runner: without it both are red, not skipped. No threshold."},
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 30, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process, an engine process known by its executable and not by the name it gives itself (Linux), and the CPU of a window, and the shape of the committed Windows reference, and the box cut out of a screenshot (its pixels, a box outside the picture refused, written as a PNG and read back, two boxes told apart by a pixel that is named, the pixels that are not grey)."},
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 4057, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_handle_action_walks_like_a_selector_action.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_host_aa_stable.py", "tests/test_ab_network.py", "tests/test_ab_network_turn_credential.py", "tests/test_ab_network_turn_deallocation.py", "tests/test_ab_network_webrtc_evidence.py", "tests/test_ab_oracle.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_host_gate_ab.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_linux_legs_read_no_mirror.py", "tests/test_ci_poison_host.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_windows_temp_is_on_d.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_action_is_pinned_by_commit_sha.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_held_request_of_the_journey_starts_after_the_load.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_every_windows_job_keeps_a_dump_of_a_crashing_python.py", "tests/test_every_wire_method_is_served_or_refused.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_reportLine truncated
@@ -20,11 +20,11 @@
{"id": "wrapper.e2e.securitystate", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_security_state_engine_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The security state the core declares, against the engine: the engine launched directly in its generate mode makes what it is given (the contract's result, security_state/ with the bytes of the full filter and of the delta, the core's own validation of it); a normal launch declares no pref of the mode and re-imports nothing; a certificate that Mozilla's CRLite test data say is revoked in a delta is refused at the first navigation (SEC_ERROR_REVOKED_CERTIFICATE) while a valid one loads, and the revoked one loads when the ready directory has no data; a ready directory with no or an empty security_state/ starts. Certificates made on the run (a fresh root trusted in cert9.db by the engine's own xpcshell, Mozilla's default test key as the key of CN=int), servers on loopback, no network. Red on firefox-67 (no generate mode).", "core_dumps": "invpw-cores"},
{"id": "wrapper.e2e.suite.linux.1", "giro": "G2", "os": ["linux"], "min_tests": 447, "exact": true, "tests": ["tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_declared_host_network_e2e.py", "tests/test_detectors_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_element_screenshot_e2e.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_display_linux.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_ignore_https_errors_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_navigation_response.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_oop_frame_element.py", "tests/test_oop_frame_geometry.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_screencast.py", "tests/test_screencast_stop_e2e.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_offline_e2e.py", "tests/test_shadow_trusted_input.py", "tests/test_strict_and_force.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_a_launch_scans_no_process_of_the_machine", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_after_close_no_process_of_the_session_is_left", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_ua_widget_not_selectable.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_throuLine truncated
{"id": "wrapper.e2e.suite.linux.2", "giro": "G2", "os": ["linux"], "min_tests": 414, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_drag_motion.py", "tests/test_expose_binding_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_new_page_defaults.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_e2e.py", "tests/test_route_post_data_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screenshot_of_text_returns_linux_e2e.py", "tests/test_scroll_into_view.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_service_workers_blocked.py", "tests/test_set_input_files_payloads.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 564 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapLine truncated
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 337, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_tooltip_opens_at_the_pointer_e2e.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict).", "run": "suite_run"},
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 333, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict).", "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.1", "giro": "G2", "os": ["windows"], "min_tests": 332, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_detectors_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_ignore_https_errors_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_transport.py", "tests/test_keyboard_rhythm.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_workers_blocked.py", "tests/test_strict_and_force.py", "tests/test_the_engine_is_born_in_the_job_e2e.py", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_ua_widget_not_selectable.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 1 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.2", "giro": "G2", "os": ["windows"], "min_tests": 286, "exact": true, "tests": ["tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_declared_host_network_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_expose_binding_e2e.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_desktop.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_oop_frame_geometry.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_e2e.py", "tests/test_screencast_stop_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 276, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_drag_motion.py", "tests/test_element_screenshot_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_first_launch_from_a_new_path.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_post_data_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screencast.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_input_files_payloads.py", "tests/test_set_offline_e2e.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_external_texture_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 3 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.4", "giro": "G2", "os": ["windows"], "min_tests": 297, "exact": true, "tests": ["tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_tooltip_opens_at_the_pointer_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_injected_node_surface.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_juggler_connection.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_oop_frame_element.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_scroll_into_view.py", "tests/test_shadow_trusted_input.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 4 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.4", "giro": "G2", "os": ["windows"], "min_tests": 293, "exact": true, "tests": ["tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_injected_node_surface.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_juggler_connection.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_oop_frame_element.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_scroll_into_view.py", "tests/test_shadow_trusted_input.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 4 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.control_a", "giro": "G2", "os": ["windows"], "min_tests": 20, "exact": true, "tests": ["tests/test_control_a_selects_all_in_a_field_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "The keyboard shortcut Control+A selects all in a field (5 ways to press it x an input and a textarea, in-process and served to the stock client), alone on its own Windows runner (windows-latest), as e2e.yml runs it on the published engine: the Windows keyboard of a real user is what it needs. The same file is in one of wrapper.e2e.suite.windows.1..4 and in wrapper.e2e.suite.linux.1.", "run": "suite_run"},
{"id": "wrapper.e2e.ab_oracle", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_oracle_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Same seed, same bytes: the engine published as firefox-68 against the candidate, on one machine, with the same core and wrapper, after the control: the published engine against ITSELF (the A/A; a difference is a broken control, exit 2, and the A/B is not run). On a pull request (no candidate: INVPW_BINARY_PATH is the published engine, no INVISIBLE_SEAL_FILE) the A/A is the whole test, on the first two seeds of the candidate set (all five when the pull request changes a file of this oracle: the step of e2e.yml that runs scripts/ci_ab_pr_seeds.py exports AB_ORACLE_PR_SEEDS), and saves both dumps and the diff under $AB_ORACLE_OUT or $RUNNER_TEMP/invpw-evidence/ab-oracle. scripts/ci_ab_oracle.py runs the host gate's dump (scripts/ci_host_gate.py dump: the persona seeds of ci/persona-seeds.json, each at its own DPR with nothing pinned, the whole page of scripts/host_gate; the `candidate` set of 5 seeds that reach every webgl renderer and every DPR, or with AB_ORACLE_SEED_SET=final and AB_ORACLE_SHARD=i/n the 20 seeds that reach every value of every dimension split over n jobs) twice, once with the firefox-68 binary (the release's seal.json, then the core's own download.ensure_binary under that seal: the archive's sha256 is checked against the seal) and once with the candidate binary of the leg under its own seal, and compares every leaf of every visit: the only differences allowed are the `noise` entries of scripts/host_gate/exceptions.json and the diag. keys; anything else is red with the leaf, the two values and the seed; fewer leaves than the host gate's reference holds (16439 per visit; a DPR the reference does not record is held to the least of those it does) is red. The files (dump-68.json, dump-68-again.json, diff-a-a.json and, with a candidate, dump-candidate.json and diff.json) are the artifact ab-oracle-<os> of the leg. 1 = the one test; the comparator's own cases (51, the A/A's among them) are in tests/test_ab_oracle.py, the persona seeds' (15) in tests/test_persona_cover.py, in the rows of the whole unit suite. Needs the engine's binary (INVPW_BINARY_PATH) and, for the A/B, the candidate's seal (INVISIBLE_SEAL_FILE) and the network (the release assets of firefox-68). The engine of the candidate must accept the core of the leg and the 68 engine must accept it too: a core that declares something the published engine refuses is a red of this suite, not of the engine.", "timeout_minutes": 50, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"], "artifact": "ab-oracle"},
{"id": "wrapper.e2e.ab_network", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_network_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Network A/B oracle: the P4 journey, HTTPS h1/h2 (ClientHello, h2 frames, header order), HTTP/3 (transport parameters, H3 SETTINGS), WebRTC through the coherent SOCKS5 lab gateway, DNS through the fake DoH, and an idle launch; transcripts compared leaf by leaf, direct connections red on either side. A/A first (the published engine twice: a difference is a broken control; ci/ab-network-volatile.json holds the leaves the A/A proved volatile, and may only shrink), then the published engine against the candidate. Without a candidate (a PR's e2e) the A/A alone, on the first seed (all five when the pull request changes a file of this oracle: AB_NETWORK_PR_SEEDS), in jobs of its own in e2e.yml on Linux and on Windows (the shared e2e jobs leave this file out).", "timeout_minutes": 75, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"]},
+241
View File
@@ -0,0 +1,241 @@
"""The retail reference of the chrome-scope twins: RETAIL Firefox 159, driven by Marionette alone (no Playwright), headed on the job's display; and one driver for it and for ours.
Playwright's own Firefox is not a reference for the popups the browser chrome opens (a select dropdown, a tooltip): nothing says its build takes ``-marionette``, and it is not the
browser a user runs. The reference of these twins is the official retail build, the one the capture rounds of RetailCaptures measured. The chrome-scope relations (the popup against its
element, the tooltip against the pointer) are read in the same way on both sides, from chrome scope through Marionette; the page and its input are driven by one small interface (``Driver``):
``goto``, ``eval`` (a JavaScript expression of the top document, as JSON), ``move``, ``click`` (the point of the top document, CSS pixels), ``wait_for_timeout`` and ``chrome``.
WHERE THE RETAIL BINARY COMES FROM. The file named by the environment variable ``INVPW_RETAIL_FIREFOX`` (the path of ``firefox`` or ``firefox.exe``): a missing variable or file is RED, never a skip.
The leg of the row ``wrapper.e2e.stock_twin`` puts it there with the mechanism the retail captures already use, in the repository oss-invisible/core: ``scripts/retail/firefox_build.py fetch
--version 159.0 --work DIR`` (it downloads ``Firefox Setup 159.0.exe`` and SHA256SUMS and SHA256SUMS.asc from archive.mozilla.org, checks the signature against the release key committed in
``captures/runner/``, checks the installer's sha256 against SHA256SUMS, extracts it with 7z and writes DIR/build.json with the path of firefox.exe).
HOW IT IS LAUNCHED (what ``scripts/retail/window_geometry/run_scale.py`` does for the captures): ``firefox -no-remote -profile <empty directory> -marionette``, with ``-remote-allow-system-access`` for the
chrome scope; the profile holds only ``user.js`` with ``marionette.port`` 0 (a free port, written to ``MarionetteActivePort``) and ``layout.css.devPixelsPerPx`` (the display scale of the case, the pref
ours and stock are launched with), and the prefs that stop the first-run pages. No policy file. The browser is closed with its whole tree when the block ends.
"""
from __future__ import annotations
import json
import os
import shutil
import subprocess
import tempfile
import time
from pathlib import Path
from typing import Any, Callable, Dict, Optional, Tuple
from _stock_twin import MARIONETTE_ARGS, SCALES_JS, Chrome
from _waits import wait_until
from _window_origin import CASES, DEADLINE_S, launch_case
ENV_VARIABLE = "INVPW_RETAIL_FIREFOX"
#: What the profile of the retail browser holds besides the two prefs of the case: the first-run pages and the updater are off, nothing else.
PROFILE_PREFS = {
"marionette.port": 0,
"browser.shell.checkDefaultBrowser": False,
"browser.aboutwelcome.enabled": False,
"browser.startup.page": 0,
"browser.startup.homepage": "about:blank",
"startup.homepage_welcome_url": "",
"startup.homepage_override_url": "",
"browser.startup.homepage_override.mstone": "ignore",
"datareporting.policy.dataSubmissionPolicyBypassNotification": True,
"toolkit.telemetry.reportingpolicy.firstRun": False,
"app.update.auto": False,
"app.update.checkInstallTime": False,
"browser.tabs.warnOnClose": False,
}
PAGE_SCALES_EXPR = "({devicePixelRatio: window.devicePixelRatio, inner: [innerWidth, innerHeight], screen: [screen.width, screen.height]})"
class MissingReference(AssertionError):
"""No retail binary to compare with: red, and no finding about ours."""
def retail_executable() -> str:
path = os.environ.get(ENV_VARIABLE, "")
if not path or not Path(path).is_file():
raise MissingReference("MISSING REFERENCE, no finding about ours: %s names no retail Firefox 159 (%r). The leg of the row wrapper.e2e.stock_twin installs it with "
"oss-invisible/core scripts/retail/firefox_build.py fetch --version 159.0 and sets the variable to the path of firefox.exe" % (ENV_VARIABLE, path))
return path
def _user_js(prefs: Dict[str, Any]) -> str:
return "".join("user_pref(%s, %s);\n" % (json.dumps(name), json.dumps(value)) for name, value in sorted(prefs.items()))
class Driver:
"""What a twin does with a page, on any browser. ``chrome.script(js, args)`` is chrome scope through Marionette."""
chrome: Any
def goto(self, url: str) -> None:
raise NotImplementedError
def eval(self, expression: str) -> Any:
"""The value of a JavaScript expression in the top document (a JSON-able value)."""
raise NotImplementedError
def move(self, x: float, y: float, steps: int = 1) -> None:
raise NotImplementedError
def click(self, x: float, y: float) -> None:
raise NotImplementedError
def wait_for_timeout(self, ms: int) -> None:
raise NotImplementedError
def scales(self) -> Dict[str, Any]:
"""The record of the scales: the page's (declared) and the chrome's, with the real ones of the screen."""
out = {"page": self.eval(PAGE_SCALES_EXPR)}
out.update(self.chrome.script(SCALES_JS))
return out
class PlaywrightDriver(Driver):
"""Ours: a page of the wrapper's client, and the chrome of the engine through Marionette."""
def __init__(self, page, chrome: Chrome) -> None:
self.page, self.chrome = page, chrome
def goto(self, url: str) -> None:
self.page.goto(url, wait_until="load", timeout=30000)
def eval(self, expression: str) -> Any:
return self.page.evaluate("() => (%s)" % expression)
def move(self, x: float, y: float, steps: int = 1) -> None:
self.page.mouse.move(x, y, steps=steps)
def click(self, x: float, y: float) -> None:
self.page.mouse.click(x, y)
def wait_for_timeout(self, ms: int) -> None:
self.page.wait_for_timeout(ms)
class RetailChrome:
def __init__(self, session: "RetailSession") -> None:
self._session = session
def script(self, script: str, args: Tuple[Any, ...] = ()) -> Dict[str, Any]:
return json.loads(self._session.call("chrome", "WebDriver:ExecuteScript", {"script": script, "args": list(args)})["value"])
#: Moves and presses at a point of the browser's content, from chrome, through the widget: a point of the top document (CSS pixels) plus the content area's own place in the window.
SEND_JS = """
const [type, x, y, button, clicks] = arguments;
const win = Services.wm.getMostRecentWindow("navigator:browser");
const b = win.gBrowser.selectedBrowser.getBoundingClientRect();
win.focus();
win.windowUtils.sendMouseEvent(type, b.left + x, b.top + y, button, clicks, 0, false, 0, 0, true);
return JSON.stringify({ok: true});
"""
class RetailSession:
"""Retail Firefox 159 with Marionette, headed, one profile; closed with its whole tree."""
def __init__(self, executable: str, dpr: float) -> None:
self.executable, self.dpr = executable, dpr
self._context: Optional[str] = None
self._process: Optional[subprocess.Popen] = None
self._profile: Optional[str] = None
self._marionette = None
def __enter__(self) -> "RetailSession":
import webfont_probe
self._profile = tempfile.mkdtemp(prefix="invpw-retail-")
prefs = dict(PROFILE_PREFS)
prefs["layout.css.devPixelsPerPx"] = str(self.dpr)
Path(self._profile, "user.js").write_text(_user_js(prefs), encoding="utf-8")
env = dict(os.environ, MOZ_REMOTE_ALLOW_SYSTEM_ACCESS="1", MOZ_CRASHREPORTER_DISABLE="1")
self._process = subprocess.Popen([self.executable, "-no-remote", "-profile", self._profile] + MARIONETTE_ARGS + ["about:blank"], env=env,
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
try:
port = webfont_probe.marionette_active_port(Path(self._profile), timeout=120)
self._marionette = webfont_probe._Marionette(port)
self._marionette.call("WebDriver:NewSession", {"capabilities": {"alwaysMatch": {}}})
except BaseException:
self.__exit__(None, None, None)
raise
return self
def call(self, context: str, command: str, params: Dict[str, Any]) -> Any:
if self._context != context:
self._marionette.call("Marionette:SetContext", {"value": context})
self._context = context
return self._marionette.call(command, params)
def __exit__(self, *exc) -> None:
if self._marionette is not None:
self._marionette.close()
if self._process is not None:
try:
import psutil
root = psutil.Process(self._process.pid)
for child in root.children(recursive=True):
try:
child.kill()
except psutil.Error:
pass
root.kill()
except Exception: # the process is gone already
pass
try:
self._process.wait(30)
except Exception:
pass
if self._profile is not None:
shutil.rmtree(self._profile, ignore_errors=True)
class RetailDriver(Driver):
def __init__(self, session: RetailSession) -> None:
self.session = session
self.chrome = RetailChrome(session)
def goto(self, url: str) -> None:
self.session.call("content", "WebDriver:Navigate", {"url": url})
wait_until(lambda: self.eval("document.readyState") == "complete", DEADLINE_S, lambda: self.wait_for_timeout(100))
def eval(self, expression: str) -> Any:
value = self.session.call("content", "WebDriver:ExecuteScript", {"script": "return JSON.stringify(%s);" % expression, "args": []})["value"]
return json.loads(value) if value is not None else None
def _send(self, kind: str, x: float, y: float, button: int = 0, clicks: int = 0) -> None:
self.chrome.script(SEND_JS, (kind, x, y, button, clicks))
def move(self, x: float, y: float, steps: int = 1) -> None:
# the pointer comes to the point in ``steps`` moves from the last one it made (a move to the point it is on makes no event, as on every browser)
last = getattr(self, "_at", (x - 1, y - 1))
for i in range(1, steps + 1):
self._send("mousemove", last[0] + (x - last[0]) * i / steps, last[1] + (y - last[1]) * i / steps)
self._at = (x, y)
def click(self, x: float, y: float) -> None:
self.move(x, y)
self._send("mousedown", x, y, 0, 1)
self._send("mouseup", x, y, 0, 1)
def wait_for_timeout(self, ms: int) -> None:
time.sleep(ms / 1000.0)
def run_retail_twin(case: str, firefox_binary: str, measure: Callable[[Driver], Dict[str, Any]]) -> Tuple[Dict[str, Any], Dict[str, Any]]:
"""(retail's record, ours): the same ``measure(driver)`` on retail Firefox 159 first and on our engine second, one browser at a time. Needs MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 for ours."""
executable = retail_executable()
with RetailSession(executable, CASES[case][0]) as session:
retail = measure(RetailDriver(session))
with launch_case(firefox_binary, case, extra_args=MARIONETTE_ARGS, extra_prefs={"marionette.port": 0}) as browser:
chrome = Chrome()
try:
ours = measure(PlaywrightDriver(browser.new_page(), chrome))
finally:
chrome.close()
return retail, ours
+3 -3
View File
@@ -127,9 +127,9 @@ def run_twin(case: str, firefox_binary: str, measure: Callable[[Any, Chrome], Di
return stock, ours
def both(case: str, stock: Dict[str, Any], ours: Dict[str, Any]) -> str:
"""The two records whole, for the message of a red twin."""
return "\n case %s\n stock: %s\n ours: %s" % (case, json.dumps(stock, sort_keys=True), json.dumps(ours, sort_keys=True))
def both(case: str, stock: Dict[str, Any], ours: Dict[str, Any], reference: str = "stock") -> str:
"""The two records whole, for the message of a red twin (``reference`` names the first: stock, or retail)."""
return "\n case %s\n %s: %s\n ours: %s" % (case, reference, json.dumps(stock, sort_keys=True), json.dumps(ours, sort_keys=True))
def differences(stock: Any, ours: Any, tolerances: Dict[str, float] = None, path: str = "") -> List[str]:
@@ -1,4 +1,4 @@
"""The dropdown of a ``<select>`` opens at its element as it does on stock Firefox with stock Playwright, in the top document and in a frame of another site.
"""The dropdown of a ``<select>`` opens at its element as it does on retail Firefox 159, in the top document and in a frame of another site.
THIS IS A PRODUCT MEASUREMENT, NOT A PAGE-VISIBLE ONE. A page cannot read where a dropdown opens. But the engine declares to the content process the window origin and the
chrome offset the page reads (not the host's), and the chrome actors of the browser that anchor a popup on screen (the select dropdown, the autocomplete list, the pickers,
@@ -6,25 +6,26 @@ the form validation bubble) compute their anchor in the content process with ``w
element. The parent then opens the popup at those numbers, on the REAL screen. Unless the parent maps the declared point back to the real one, the dropdown opens away
from its element by the difference between the declared window and the real one (and, in a frame of another process, by the declared chrome offset too: the matrix of that process).
THE VERDICT IS "THE SAME AS STOCK". The relation that is measured is not a number of ours: stock Firefox (Playwright's own build, driven by the stock Playwright client, ``_stock_twin``)
does the same steps first, on the same local pages, at the same window size and the same scale, and ours must give the same relation. What stock does with the popup (a
margin, a flip, a rounding) is then in both, and what differs is ours.
THE VERDICT IS "THE SAME AS RETAIL". The relation that is measured is not a number of ours: retail Firefox 159 (the official build, driven by Marionette alone, no Playwright, headed on
the job's display: ``_retail_reference``) does the same steps first, on the same local pages and at the same display scale, and ours must give the same relation. What retail does with the popup
(a margin, a flip, a rounding) is then in both, and what differs is ours. Playwright's own Firefox is not the reference here: it is not what a user runs, and it is not known to take Marionette.
What it does, per display case (the four of the window tests), on each browser: it is launched with Marionette (``-marionette -remote-allow-system-access``, the route of
``test_software_compositing_is_declared_e2e.py``), so the test can read the chrome of the browser. A page of the top site has a ``<select>`` (160x28 at (30, 20)) and a frame
of another site, 420x200 at (30, 120), with the same ``<select>`` at (40, 20) of its document. For each of the two selects:
What it does, per display case (the four of the window tests), on each browser, which is launched with Marionette so that the test can read the chrome of the browser. A page of the top site has a
``<select>`` (160x28 at (30, 20), page margin 0) and a frame of another site, 420x200 at (30, 120), with the same ``<select>`` at (40, 20) of its document. The rectangles are the ones the CSS of
the pages gives (everything is absolute, the margins are 0, nothing scrolls). For each of the two selects:
* the client's own click (``locator.click``) opens the dropdown, and the test waits for the menulist popup of ``ContentSelectDropdown`` to be ``open``;
* from chrome, two rectangles are read, in the CSS pixels of the chrome: the popup's real screen rectangle (``popup.getOuterScreenRect()``, the bounds of the popup's own widget)
and the select's REAL screen rectangle, computed in the parent from the real geometry of the browser: the content-area rectangle of the ``<browser>`` plus the select's rectangle
in the page (the page's own ``getBoundingClientRect``, plus the frame's box for the second one), converted with the chrome window's ``windowUtils.toScreenRectInCSSUnits``;
* ``dx`` and ``dy`` are the popup's left less the element's left and the popup's top less the element's bottom, in DEVICE pixels (the chrome's CSS pixels times the chrome's
``devicePixelRatio``, so the two browsers are compared in one unit); ours equals stock's within ONE device pixel, in the top document and in the frame.
* a real click at its centre (the client's mouse on ours, a mouse event through the window's widget from chrome scope on retail) opens the dropdown, and the test waits for the menulist popup of
``ContentSelectDropdown`` to be ``open``;
* from chrome, two rectangles are read, in the CSS pixels of the chrome: the popup's real screen rectangle (``popup.getOuterScreenRect()``, the bounds of the popup's own widget) and the select's REAL
screen rectangle, computed in the parent from the real geometry of the browser: the content-area rectangle of the ``<browser>`` plus the select's rectangle in the page, converted with the chrome
window's ``windowUtils.toScreenRectInCSSUnits``;
* ``dx`` and ``dy`` are the popup's left less the element's left and the popup's top less the element's bottom, in DEVICE pixels (the chrome's CSS pixels times the chrome's ``devicePixelRatio``,
so the two browsers are compared in one unit); ours equals retail's within ONE device pixel, in the top document and in the frame.
THE RECORD (``_stock_twin``): for each browser, the rectangles, and the scales: the page's ``devicePixelRatio`` (declared), the chrome's ``devicePixelRatio``, and the real scale of the screen
read from chrome (``nsIScreen.contentsScaleFactor``, ``defaultCSSScaleFactor``, ``displayDPI``). The element's rectangle is computed in the chrome's CSS pixels from the page's CSS pixels,
so a page whose scale is not the chrome's puts the element at the wrong place by their ratio: the record also keeps ``element_scaled`` (the page's rectangle times page ratio over chrome ratio)
and the ``dx``/``dy`` against it, so a red twin shows whether a scale mismatch between the page's CSS pixels and the chrome's is what moves the popup.
THE RECORD: for each browser, the rectangles, and the scales: the page's ``devicePixelRatio`` (declared), the chrome's ``devicePixelRatio``, and the real scale of the screen read from chrome
(``nsIScreen.contentsScaleFactor``, ``defaultCSSScaleFactor``, ``displayDPI``). The element's rectangle is computed in the chrome's CSS pixels from the page's CSS pixels, so a page whose scale is
not the chrome's puts the element at the wrong place by their ratio: the record also keeps ``dx_scaled`` and ``dy_scaled``, against the element scaled by page ratio over chrome ratio, so a red twin
shows whether a scale mismatch between the page's CSS pixels and the chrome's is what moves the popup.
The engine that answers these values is not released yet: this test is red on an engine that declares the window origin without the map of the popups, on purpose.
"""
@@ -33,8 +34,9 @@ from __future__ import annotations
from typing import Any, Dict
import pytest
from _fission_frames import Sites, wait_frame
from _stock_twin import Chrome, both, differences, run_twin
from _fission_frames import Sites
from _retail_reference import Driver, run_retail_twin
from _stock_twin import both, differences
from _window_origin import CASES, DEADLINE_S, wait_for
pytestmark = pytest.mark.e2e
@@ -49,9 +51,8 @@ FRAME = """<!doctype html><meta charset=utf-8><title>select in a frame</title>
<style>html,body{margin:0;padding:0}select{position:absolute;box-sizing:border-box;width:160px;height:28px;margin:0;left:40px;top:20px}</style>
<body><select id=s><option>one</option><option>two</option><option>three</option></select>"""
#: The select's rectangle in the page's own viewport, CSS pixels.
SELECT_BOX = "() => { const r = document.getElementById('s').getBoundingClientRect(); return {x: r.left, y: r.top, w: r.width, h: r.height}; }"
FRAME_BOX = "() => { const r = document.getElementById('f').getBoundingClientRect(); return {x: r.left, y: r.top}; }"
#: The selects' rectangles in the top document's viewport, CSS pixels, as the CSS above gives them: x, y, width, height.
SELECTS = {"top": {"x": 30, "y": 20, "w": 160, "h": 28}, "frame": {"x": 30 + 40, "y": 120 + 20, "w": 160, "h": 28}}
# The reads of the browser chrome, in the script of Marionette (chrome scope).
POPUP_STATE_JS = """
@@ -80,24 +81,24 @@ return JSON.stringify({state: popup.state});
"""
def _wait_state(page, chrome: Chrome, state: str) -> Dict[str, Any]:
def _wait_state(driver: Driver, state: str) -> Dict[str, Any]:
"""The popup's state once it is ``state`` (open or closed), polled; the last reading at the deadline."""
seen: Dict[str, Any] = {}
def look() -> bool:
seen.update(chrome.script(POPUP_STATE_JS))
seen.update(driver.chrome.script(POPUP_STATE_JS))
return seen["state"] == state
wait_for(page, look, DEADLINE_S)
wait_for(driver, look, DEADLINE_S)
return seen
def _measure(page, chrome: Chrome, rect: Dict[str, float]) -> Dict[str, Any]:
def _measure(driver: Driver, rect: Dict[str, float]) -> Dict[str, Any]:
"""Opens nothing: reads the open popup and the select's real screen rectangle, both in CSS pixels of the chrome, once two looks agree."""
read = chrome.script(MEASURE_JS, (rect,))
read = driver.chrome.script(MEASURE_JS, (rect,))
for _ in range(int(DEADLINE_S * 10)):
page.wait_for_timeout(100)
again = chrome.script(MEASURE_JS, (rect,))
driver.wait_for_timeout(100)
again = driver.chrome.script(MEASURE_JS, (rect,))
if again == read:
return again
read = again
@@ -116,40 +117,32 @@ def _relation(read: Dict[str, Any], page_dpr: float) -> Dict[str, Any]:
"dx_scaled": round((popup["left"] - scaled_left) * chrome_dpr, 3), "dy_scaled": round((popup["top"] - scaled_bottom) * chrome_dpr, 3)}
def _steps(sites, page, chrome: Chrome) -> Dict[str, Any]:
def _steps(sites, driver: Driver) -> Dict[str, Any]:
"""What one browser does: click each select, read the popup against its element, close it. {"scales": ..., "measured": {top, frame}}."""
page.goto(sites.url("A", "/page"), wait_until="load", timeout=30000)
frame = wait_frame(page, sites.origin["B"], "/select", seconds=DEADLINE_S)
wait_for(page, lambda: frame.evaluate("() => document.readyState") == "complete")
scales = chrome.scales(page)
top_rect = page.evaluate(SELECT_BOX)
frame_origin = page.evaluate(FRAME_BOX)
in_frame = frame.evaluate(SELECT_BOX)
frame_rect = {"x": frame_origin["x"] + in_frame["x"], "y": frame_origin["y"] + in_frame["y"], "w": in_frame["w"], "h": in_frame["h"]}
driver.goto(sites.url("A", "/page"))
scales = driver.scales()
measured: Dict[str, Any] = {}
for name, document, rect in (("top", page, top_rect), ("frame", frame, frame_rect)):
document.locator("#s").click()
opened = _wait_state(page, chrome, "open")
for name, rect in SELECTS.items():
driver.click(rect["x"] + rect["w"] / 2, rect["y"] + rect["h"] / 2)
opened = _wait_state(driver, "open")
assert opened["state"] == "open", "the dropdown did not open after a click on the select of the %s document (popup state %r)" % (name, opened)
measured[name] = _relation(_measure(page, chrome, rect), scales["page"]["devicePixelRatio"])
chrome.script(CLOSE_JS)
closed = _wait_state(page, chrome, "closed")
measured[name] = _relation(_measure(driver, rect), scales["page"]["devicePixelRatio"])
driver.chrome.script(CLOSE_JS)
closed = _wait_state(driver, "closed")
assert closed["state"] == "closed", "the dropdown of the %s document did not close (popup state %r)" % (name, closed)
return {"scales": scales, "measured": measured}
@pytest.mark.parametrize("case", sorted(CASES))
def test_a_select_dropdown_opens_at_its_element_as_on_stock(firefox_binary, monkeypatch, case):
def test_a_select_dropdown_opens_at_its_element_as_on_retail(firefox_binary, monkeypatch, case):
monkeypatch.setenv("MOZ_REMOTE_ALLOW_SYSTEM_ACCESS", "1") # the chrome-scope reads
with Sites() as sites:
sites.route("A", "/page", lambda handler: TOP % sites.url("B", "/select"))
sites.route("B", "/select", FRAME)
stock, ours = run_twin(case, firefox_binary, lambda page, chrome: _steps(sites, page, chrome))
retail, ours = run_retail_twin(case, firefox_binary, lambda driver: _steps(sites, driver))
# one device pixel of the chrome: the popup's position is rounded once, the element's once
relation = lambda record: {name: {key: value[key] for key in ("dx", "dy", "dx_scaled", "dy_scaled")} for name, value in record["measured"].items()} # noqa: E731
differing = differences(relation(stock), relation(ours), {"dx": 1.0, "dy": 1.0, "dx_scaled": 1.0, "dy_scaled": 1.0}, "measured")
differing = differences(relation(retail), relation(ours), {"dx": 1.0, "dy": 1.0, "dx_scaled": 1.0, "dy_scaled": 1.0}, "measured")
assert not differing, (
"%s: the dropdown of ours is not where stock's is against its element (dx, dy in device pixels of each chrome, both measured against the element's real rectangle):\n %s%s"
% (case, "\n ".join(differing), both(case, stock, ours)))
"%s: the dropdown of ours is not where retail's is against its element (dx, dy in device pixels of each chrome, both measured against the element's real rectangle):\n %s%s"
% (case, "\n ".join(differing), both(case, retail, ours, "retail")))
@@ -1,4 +1,4 @@
"""The tooltip of an element with a ``title`` opens on the real screen at the pointer, in the top document and in a frame of another site.
"""The tooltip of an element with a ``title`` opens at the pointer as it does on retail Firefox 159, in the top document and in a frame of another site.
THIS IS A PRODUCT MEASUREMENT, NOT A PAGE-VISIBLE ONE: a page cannot read where a tooltip opens. But the point the browser opens it at is the event's screen point
(``ChromeTooltipListener::MouseMove`` keeps ``ScreenPointLayoutDevicePix`` of the mouse event, ``nsDocShellTreeOwner.cpp``, and ``XULBrowserWindow.showTooltip`` in the parent
@@ -6,41 +6,42 @@ calls ``#remoteBrowserTooltip.openPopupAtScreen(x / devicePixelRatio, y / device
process, so that event point is a DECLARED screen point; opened as it is, the tooltip would sit away from the pointer by (declared - real) origin, and, in a frame of another
process, by the declared chrome offset of its matrix as well. The engine maps the point back to the real one in the parent, before the popup opens (the tooltip map).
What it does, per display case (the four of the window tests): the browser is launched with Marionette (``-marionette -remote-allow-system-access``, the route of
``test_a_select_dropdown_opens_at_its_element_e2e.py``). A page of the top site has a 120x40 box with a ``title`` at (40, 40), and a frame of another site, 420x200 at (30, 120),
with the same box at (40, 40) of its document. For each of the two boxes:
THE VERDICT IS "THE SAME OFFSET AS RETAIL". Retail Firefox 159 (the official build, driven by Marionette alone, no Playwright, headed on the job's display: ``_retail_reference``) does the
same steps first, on the same local pages and at the same display scale; the tooltip's offset from the pointer on ours equals retail's within two device pixels. The rule Firefox computes
(``tooltip_offset()``: ``LookAndFeel::kDefaultTooltipOffset`` = 21 CSS pixels, widget/LookAndFeel.h:349, ``nsMenuPopupFrame::GetMargin`` layout/xul/nsMenuPopupFrame.cpp:2249; on Windows
``GetTooltipOffsetVertical``, widget/windows/nsLookAndFeel.cpp:43-51, makes it ceil(21 * cursor size / 32) when the system cursor size is not 32) is in each record as a cross-check
(``rule_dy``) and is not the verdict: a record whose retail offset is not the rule is a finding about the rule, printed with both.
* the client's own mouse (``page.mouse.move``) goes away from the box and then onto its centre; the test waits for ``#remoteBrowserTooltip`` of the browser window to be ``open``
(after ``ui.tooltip.delay_ms``); the chrome window is focused first, because ``showTooltip`` shows nothing in a window that has no focus;
* from chrome, the popup's real screen rectangle (``getOuterScreenRect()``) and the REAL screen position of the pointer are read, in CSS pixels of the chrome: the content-area
rectangle of the ``<browser>`` plus the point in the page, converted with the chrome window's ``windowUtils.toScreenRectInCSSUnits`` (the widget as it really is);
* Firefox opens an unanchored tooltip with its left at the pointer and its top ``LookAndFeel::TooltipOffsetVertical`` below it (``nsMenuPopupFrame::GetMargin``,
layout/xul/nsMenuPopupFrame.cpp:2249). The offset is ``LookAndFeel::kDefaultTooltipOffset`` = 21 CSS pixels (widget/LookAndFeel.h:349); on Windows
``GetTooltipOffsetVertical`` (widget/windows/nsLookAndFeel.cpp:43-51) makes it ceil(21 * cursor size / 32) when the system cursor size (SPI_GETCURSORSIZE, 0x2028) is
not 32. The expected offset is computed from that rule (``tooltip_offset()``), so it holds for any cursor size: the popup's left less the pointer's x is 0 and its top
less the pointer's y is that offset, each
within two device pixels (the point is a device pixel and the popup's position is rounded once more), in the top document and in the frame alike.
What it does, per display case (the four of the window tests), on each browser (launched with Marionette so that the test can read its chrome): a page of the top site has a 120x40 box with a
``title`` at (40, 40), and a frame of another site, 420x200 at (30, 120), with the same box at (40, 40) of its document. For each of the two boxes:
* the pointer goes away from the box and then onto its centre (the client's own mouse on ours, mouse events through the window's widget from chrome scope on retail); the test waits for
``#remoteBrowserTooltip`` of the browser window to be ``open`` (after ``ui.tooltip.delay_ms``); the chrome window is focused first, because ``showTooltip`` shows nothing in a window that
has no focus;
* from chrome, the popup's real screen rectangle (``getOuterScreenRect()``) and the REAL screen position of the pointer are read, in CSS pixels of the chrome: the content-area rectangle of the
``<browser>`` plus the point in the page, converted with the chrome window's ``windowUtils.toScreenRectInCSSUnits`` (the widget as it really is);
* ``dx`` and ``dy`` are the popup's left less the pointer's x and its top less the pointer's y, in DEVICE pixels of the chrome.
RED WITHOUT THE TOOLTIP MAP. With the declared point opened as it is, the popup is at the pointer plus (declared window origin - real window origin) (and, in the frame, plus the
declared chrome offset less the real one): on Linux the window manager's frame and the host's chrome are not retail's, on Windows the real chrome has other heights, so at least one
of the two offsets is more than two device pixels away from (0, 21) at every case, and the assertion prints both, with the popup and the pointer.
of the two offsets is more than two device pixels away from retail's at every case, and the assertion prints both records.
The engine that answers these values is not released yet: this test is red on an engine that declares the window origin without the map, on purpose.
"""
from __future__ import annotations
import json
import math
import sys
from typing import Any, Dict, Tuple
from typing import Any, Dict
import pytest
from _fission_frames import Sites, wait_frame
from _window_origin import CASES, DEADLINE_S, launch_case, wait_for
from _fission_frames import Sites
from _retail_reference import Driver, run_retail_twin
from _stock_twin import both, differences
from _window_origin import CASES, DEADLINE_S, wait_for
pytestmark = pytest.mark.e2e
MARIONETTE_ARGS = ["-marionette", "-remote-allow-system-access"]
#: ``LookAndFeel::kDefaultTooltipOffset`` (widget/LookAndFeel.h:349): how far below the pointer an unanchored tooltip opens, CSS pixels, at the default cursor size.
DEFAULT_TOOLTIP_OFFSET = 21
#: ``kDefaultCursorSize`` of ``GetTooltipOffsetVertical`` (widget/windows/nsLookAndFeel.cpp:44).
@@ -61,6 +62,8 @@ def tooltip_offset() -> int:
if size.value == DEFAULT_CURSOR_SIZE:
return DEFAULT_TOOLTIP_OFFSET
return math.ceil(DEFAULT_TOOLTIP_OFFSET * size.value / DEFAULT_CURSOR_SIZE)
#: The box that has the title: 120x40 at (40, 40) of its document.
BOX = (40, 40, 120, 40)
#: Where the mouse waits before it comes onto the box, in the top document.
@@ -95,85 +98,69 @@ return JSON.stringify({state: tip.state, pointer: {x: p.left, y: p.top}, popup:
"""
def _marionette():
import webfont_probe
m = webfont_probe._Marionette(webfont_probe.marionette_active_port())
m.call("WebDriver:NewSession", {"capabilities": {"alwaysMatch": {}}})
m.call("Marionette:SetContext", {"value": "chrome"})
return m
def _script(marionette, script: str, args=()) -> Dict[str, Any]:
return json.loads(marionette.call("WebDriver:ExecuteScript", {"script": script, "args": list(args)})["value"])
def _wait_state(page, marionette, state: str) -> Dict[str, Any]:
def _wait_state(driver: Driver, state: str) -> Dict[str, Any]:
seen: Dict[str, Any] = {}
def look() -> bool:
seen.update(_script(marionette, STATE_JS))
seen.update(driver.chrome.script(STATE_JS))
return seen["state"] == state
wait_for(page, look, DEADLINE_S)
wait_for(driver, look, DEADLINE_S)
return seen
def _measured(page, marionette, point: Dict[str, float]) -> Dict[str, Any]:
def _measured(driver: Driver, point: Dict[str, float]) -> Dict[str, Any]:
"""The popup and the pointer once two looks 100 ms apart agree."""
read = _script(marionette, MEASURE_JS, [point])
read = driver.chrome.script(MEASURE_JS, (point,))
for _ in range(int(DEADLINE_S * 10)):
page.wait_for_timeout(100)
again = _script(marionette, MEASURE_JS, [point])
driver.wait_for_timeout(100)
again = driver.chrome.script(MEASURE_JS, (point,))
if again == read:
return again
read = again
return read
def _offset(read: Dict[str, Any]) -> Tuple[float, float]:
"""(popup left - pointer x, popup top - pointer y), CSS pixels of the chrome."""
return (read["popup"]["left"] - read["pointer"]["x"], read["popup"]["top"] - read["pointer"]["y"])
def _relation(read: Dict[str, Any], rule: int) -> Dict[str, Any]:
"""The popup and the pointer, the offset between them in device pixels of the chrome, and the rule's offset as a cross-check."""
dpr = read["dpr"]
dx = (read["popup"]["left"] - read["pointer"]["x"]) * dpr
dy = (read["popup"]["top"] - read["pointer"]["y"]) * dpr
return {"popup": read["popup"], "pointer": read["pointer"], "dx": round(dx, 3), "dy": round(dy, 3), "rule_dy": round(rule * dpr, 3)}
def _steps(sites, driver: Driver) -> Dict[str, Any]:
"""What one browser does: the pointer onto each box, the tooltip against the pointer, the pointer away. {"scales": ..., "measured": {top, frame}}."""
driver.goto(sites.url("A", "/page"))
scales = driver.scales()
wait_for(driver, lambda: driver.chrome.script(FOCUS_JS)["focus"], DEADLINE_S)
focus = driver.chrome.script(FOCUS_JS)
rule = tooltip_offset()
measured: Dict[str, Any] = {}
for name, origin in (("top", (0, 0)), ("frame", FRAME_AT)):
point = {"x": origin[0] + BOX[0] + BOX[2] // 2, "y": origin[1] + BOX[1] + BOX[3] // 2}
driver.move(*AWAY)
driver.move(point["x"] - 20, point["y"] - 10)
driver.move(point["x"], point["y"], steps=4)
opened = _wait_state(driver, "open")
assert opened["state"] == "open", "no tooltip opened over the box with a title of the %s document (popup state %r; the chrome window had focus: %r)" % (name, opened, focus)
measured[name] = _relation(_measured(driver, point), rule)
driver.move(*AWAY)
closed = _wait_state(driver, "closed")
assert closed["state"] == "closed", "the tooltip of the %s document did not close when the pointer left (popup state %r)" % (name, closed)
return {"scales": scales, "measured": measured}
@pytest.mark.parametrize("case", sorted(CASES))
def test_a_tooltip_opens_at_the_pointer(firefox_binary, monkeypatch, case):
monkeypatch.setenv("MOZ_REMOTE_ALLOW_SYSTEM_ACCESS", "1") # the chrome-scope reads below
marionette = None
reads: Dict[str, Dict[str, Any]] = {}
def test_a_tooltip_opens_at_the_pointer_as_on_retail(firefox_binary, monkeypatch, case):
monkeypatch.setenv("MOZ_REMOTE_ALLOW_SYSTEM_ACCESS", "1") # the chrome-scope reads
with Sites() as sites:
sites.route("A", "/page", lambda handler: TOP % sites.url("B", "/tip"))
sites.route("B", "/tip", FRAME)
try:
with launch_case(firefox_binary, case, extra_args=MARIONETTE_ARGS, extra_prefs={"marionette.port": 0}) as browser:
page = browser.new_page()
page.goto(sites.url("A", "/page"), wait_until="load", timeout=30000)
frame = wait_frame(page, sites.origin["B"], "/tip", seconds=DEADLINE_S)
wait_for(page, lambda: frame.evaluate("() => document.readyState") == "complete")
marionette = _marionette()
wait_for(page, lambda: _script(marionette, FOCUS_JS)["focus"], DEADLINE_S)
focus = _script(marionette, FOCUS_JS)
for name, origin in (("top", (0, 0)), ("frame", FRAME_AT)):
point = {"x": origin[0] + BOX[0] + BOX[2] // 2, "y": origin[1] + BOX[1] + BOX[3] // 2}
page.mouse.move(*AWAY)
page.mouse.move(point["x"] - 20, point["y"] - 10)
page.mouse.move(point["x"], point["y"], steps=4)
opened = _wait_state(page, marionette, "open")
assert opened["state"] == "open", (
"%s, %s document: no tooltip opened over the box with a title (popup state %r; the chrome window had focus: %r)" % (case, name, opened, focus))
reads[name] = _measured(page, marionette, point)
page.mouse.move(*AWAY)
closed = _wait_state(page, marionette, "closed")
assert closed["state"] == "closed", "%s, %s document: the tooltip did not close when the pointer left (popup state %r)" % (case, name, closed)
finally:
if marionette is not None:
marionette.close()
offset = tooltip_offset()
for name, read in reads.items():
tolerance = 2.0 / read["dpr"] + 0.01
dx, dy = _offset(read)
assert abs(dx) <= tolerance and abs(dy - offset) <= tolerance, (
"%s, %s document: the tooltip opened at (left %r, top %r) on the real screen and the real pointer is at (%r, %r): it is (%r, %r) from the pointer, Firefox opens it at (0, %d), "
"each within %r CSS pixels of the chrome (popup %r)"
% (case, name, read["popup"]["left"], read["popup"]["top"], read["pointer"]["x"], read["pointer"]["y"], dx, dy, offset, tolerance, read["popup"]))
retail, ours = run_retail_twin(case, firefox_binary, lambda driver: _steps(sites, driver))
# two device pixels: the point is a device pixel and the popup's position is rounded once more
relation = lambda record: {name: {key: value[key] for key in ("dx", "dy")} for name, value in record["measured"].items()} # noqa: E731
differing = differences(relation(retail), relation(ours), {"dx": 2.0, "dy": 2.0}, "measured")
assert not differing, (
"%s: the tooltip of ours is not where retail's is against the pointer (dx, dy in device pixels of each chrome; rule_dy is the offset Firefox's own rule gives on this host):\n %s%s"
% (case, "\n ".join(differing), both(case, retail, ours, "retail")))
+6 -4
View File
@@ -56,11 +56,13 @@ EXCLUDED = {
"tests/test_ab_host_crash_linux_e2e.py":
(_BOTH, "wrapper.e2e.ab_host_crash: the host oracle's recorder on a launch that dies on purpose has its own row (Linux only) and runs in the host oracle's job"),
"tests/test_a_drag_from_the_top_into_a_frame_of_another_site_e2e.py":
(_BOTH, "wrapper.e2e.stock_twin: the same steps on Playwright's own Firefox and on ours (the stock twin), which only the legs of that row install; the whole-suite rows have no stock Firefox"),
(_BOTH, "wrapper.e2e.stock_twin: the same steps on a reference (Playwright's own Firefox, or retail Firefox 159 for the chrome popups) and on ours, which only the legs of that row install; the whole-suite rows have neither"),
"tests/test_a_select_dropdown_opens_at_its_element_e2e.py":
(_BOTH, "wrapper.e2e.stock_twin: the same steps on Playwright's own Firefox and on ours (the stock twin), which only the legs of that row install; the whole-suite rows have no stock Firefox"),
(_BOTH, "wrapper.e2e.stock_twin: the same steps on a reference (Playwright's own Firefox, or retail Firefox 159 for the chrome popups) and on ours, which only the legs of that row install; the whole-suite rows have neither"),
"tests/test_a_tooltip_opens_at_the_pointer_e2e.py":
(_BOTH, "wrapper.e2e.stock_twin: the same steps on a reference (Playwright's own Firefox, or retail Firefox 159 for the chrome popups) and on ours, which only the legs of that row install; the whole-suite rows have neither"),
"tests/test_intersection_and_lazy_loading_in_a_frame_of_another_site_e2e.py":
(_BOTH, "wrapper.e2e.stock_twin: the same steps on Playwright's own Firefox and on ours (the stock twin), which only the legs of that row install; the whole-suite rows have no stock Firefox"),
(_BOTH, "wrapper.e2e.stock_twin: the same steps on a reference (Playwright's own Firefox, or retail Firefox 159 for the chrome popups) and on ours, which only the legs of that row install; the whole-suite rows have neither"),
"tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py":
(_BOTH, "wrapper.e2e.udp.exit: the lab's exit is an address held on lo as root (Linux only), run in the root step"),
"tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick":
@@ -97,7 +99,7 @@ EXCLUDED = {
(("windows",), "skips on Windows: the Linux text path"),
}
#: Changed by hand, together with the list above: an exclusion is a test the candidate does not run, and it may not be added in silence.
EXCLUDED_COUNT = 24
EXCLUDED_COUNT = 25
@functools.lru_cache(maxsize=None)