Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bc866ac0d | ||
|
|
cec6e28767 |
No files matched your search
@@ -74,7 +74,7 @@ ON_WINDOWS = sys.platform == "win32"
|
||||
@pytest.mark.skipif(ON_WINDOWS, reason="the system theme is declared, and its absence refused, on Linux only")
|
||||
@pytest.mark.parametrize("pref", MISSING)
|
||||
def test_a_missing_pref_refuses_the_launch(firefox_binary, engine_at_least, pref):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
with pytest.raises(RuntimeError) as err:
|
||||
c, profile_dir = _launch(firefox_binary, pref)
|
||||
# Not reached when the engine refuses: close what must not be running.
|
||||
@@ -88,7 +88,7 @@ def test_a_missing_pref_refuses_the_launch(firefox_binary, engine_at_least, pref
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_every_pref_declared_the_launch_succeeds(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
c, profile_dir = _launch(firefox_binary, None)
|
||||
try:
|
||||
assert c.ready_seen, "the browser did not announce the protocol"
|
||||
|
||||
@@ -113,7 +113,7 @@ def _serve(imgs, listing):
|
||||
@pytest.mark.e2e
|
||||
@pytest.mark.timeout(300, method="thread")
|
||||
def test_tagged_images_read_back_as_retail_windows_reads_them(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
refs_path = DATA / "refs.json"
|
||||
if not refs_path.is_file():
|
||||
pytest.fail("tests/data/canvas_icc_ref/refs.json is missing: it is the reference "
|
||||
|
||||
@@ -104,7 +104,7 @@ def _want(cases):
|
||||
@pytest.mark.e2e
|
||||
@pytest.mark.timeout(600, method="thread")
|
||||
def test_coloured_text_is_what_retail_windows_draws(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
refs = _refs()
|
||||
assert refs["colors"]["count"] == len(refs["colors"]["cases"]) == 14
|
||||
got = _launch(firefox_binary, refs, None, {})
|
||||
@@ -128,7 +128,7 @@ def _keys():
|
||||
@pytest.mark.parametrize("tag", _keys())
|
||||
def test_text_under_a_cleartype_key_is_what_retail_windows_draws(
|
||||
tag, firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
refs = _refs()
|
||||
k = refs["keys"][tag]
|
||||
want_black, want_colors = _want(k["black"]), _want(k["colors"])
|
||||
|
||||
@@ -58,7 +58,7 @@ from invisible_playwright import InvisiblePlaywright
|
||||
@pytest.mark.e2e
|
||||
@pytest.mark.timeout(1800, method="thread")
|
||||
def test_canvas_text_is_what_retail_windows_draws(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
refs_path = DATA / "refs.json"
|
||||
if not refs_path.is_file():
|
||||
pytest.fail("tests/data/canvas_text_ref/refs.json is missing: it is the reference "
|
||||
|
||||
@@ -73,7 +73,7 @@ def test_the_data_has_every_function_and_the_inputs_that_tell_the_libraries_apar
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_css_calc_functions_are_ucrtbase_bytes(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
cases = _cases()
|
||||
|
||||
@@ -265,7 +265,7 @@ def test_a_killed_stand_in_leaves_neither_strace_nor_the_browser(firefox_binary,
|
||||
|
||||
|
||||
def test_no_process_reads_the_host_fontconfig(firefox_binary, tmp_path, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
_require_strace_can_trace(tmp_path)
|
||||
|
||||
@@ -87,7 +87,7 @@ def test_the_data_holds_the_inputs_that_tell_the_libraries_apart():
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_math_sin_cos_tan_bytes_are_ucrtbase_over_a_long_hot_loop(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
cases = _cases()
|
||||
|
||||
@@ -65,7 +65,7 @@ def test_the_reference_has_every_font_and_both_schemes():
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_system_fonts_and_colours_match_windows_retail(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
with InvisiblePlaywright(seed=6022, binary_path=firefox_binary, headless=True) as browser:
|
||||
|
||||
@@ -162,7 +162,7 @@ class _AnnexbHandler(BaseHTTPRequestHandler):
|
||||
|
||||
|
||||
def test_webcodecs_h264_bframe_pts_matches_retail_order(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ class _AnnexbHandler(BaseHTTPRequestHandler):
|
||||
def test_webcodecs_h264_software_decode_matches_retail_even_with_hardware_request(
|
||||
firefox_binary, engine_at_least
|
||||
):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ class _AnnexbHandler(BaseHTTPRequestHandler):
|
||||
|
||||
|
||||
def test_webcodecs_h264_decodes_on_a_host_without_libavcodec(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
if not sys.platform.startswith("linux"):
|
||||
pytest.skip("the host libavcodec/libavutil that could mask a missing ffvpx are Linux libraries")
|
||||
present = _host_libavcodec_files()
|
||||
|
||||
@@ -59,7 +59,7 @@ def _host_mesa_files() -> list:
|
||||
|
||||
|
||||
def test_webgl2_exists_on_a_host_without_mesa(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
if not sys.platform.startswith("linux"):
|
||||
pytest.skip("the host's GL probe that blocked WebGL is a Linux one")
|
||||
present = _host_mesa_files()
|
||||
|
||||
@@ -312,7 +312,7 @@ def _describe(failures: list, worst: int = 8) -> str:
|
||||
|
||||
|
||||
def test_blending_is_done_unquantized_and_rounded_once(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
if not sys.platform.startswith("linux"):
|
||||
pytest.skip("Windows: objective 5. On Windows the blend is done by the host's Direct3D 11 (WARP on a runner "
|
||||
"without a GPU, which rounds up to 2 off), until ANGLE's translator does it; the Mesa patch fixes "
|
||||
|
||||
@@ -209,7 +209,7 @@ def test_the_model_keeps_the_sign_of_a_zero_sum():
|
||||
@pytest.mark.parametrize("alu_class", (1, 2))
|
||||
@pytest.mark.parametrize("k", (2, 3, 4))
|
||||
def test_dot_is_the_nvidia_fma_chain_when_declared(firefox_binary, engine_at_least, k, alu_class):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
bad = _mismatches(firefox_binary, alu_class, k)
|
||||
assert not bad, "dot%d, class %d: %d of %d differ from the chain, first %s" % (
|
||||
k, alu_class, len(bad), N, json.dumps(bad[:3]))
|
||||
@@ -221,7 +221,7 @@ def test_dot_is_the_nvidia_fma_chain_when_declared(firefox_binary, engine_at_lea
|
||||
@pytest.mark.parametrize("k", (2, 3, 4))
|
||||
def test_dot_without_the_declaration_is_the_hosts_own(firefox_binary, engine_at_least, k):
|
||||
"""The control: with class 0 the same vectors tell the host's dot() from the chain."""
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
bad = _mismatches(firefox_binary, 0, k)
|
||||
if not bad:
|
||||
pytest.skip("this adapter's dot%d() already is the NVIDIA chain: the difference is not visible here" % k)
|
||||
|
||||
@@ -157,7 +157,7 @@ def arithmetic_problems(bits: list) -> list:
|
||||
|
||||
|
||||
def test_mediump_computes_at_32_bit(firefox_binary, engine_at_least):
|
||||
engine_at_least("firefox-65")
|
||||
engine_at_least("firefox-66")
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
texels = _texels()
|
||||
|
||||
Reference in new issue
Block a user