From 62c79514249ac2c493390e75cd66235bd31942f2 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 30 Oct 2024 20:56:03 +0100 Subject: [PATCH] Fix timeout in position-absolute-replaced-minmax.html (#34075) Some images don't load because we don't support SVG. In that case this makes the test fail rather than timing out. Signed-off-by: Oriol Brufau --- tests/wpt/meta/MANIFEST.json | 2 +- ...position-absolute-replaced-minmax.html.ini | 39 +++++++++---------- .../position-absolute-replaced-minmax.html | 1 + 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index ad5f0472deb..0b6f327e8af 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -565360,7 +565360,7 @@ ] ], "position-absolute-replaced-minmax.html": [ - "5a76277092bf9e84605fbb8e1fd64e17259e3f44", + "6e5c1f2be5340f027081f22a81dfb4796ab861c1", [ null, {} diff --git a/tests/wpt/meta/css/css-position/position-absolute-replaced-minmax.html.ini b/tests/wpt/meta/css/css-position/position-absolute-replaced-minmax.html.ini index db494d92301..5040d8ec3c8 100644 --- a/tests/wpt/meta/css/css-position/position-absolute-replaced-minmax.html.ini +++ b/tests/wpt/meta/css/css-position/position-absolute-replaced-minmax.html.ini @@ -1,5 +1,4 @@ [position-absolute-replaced-minmax.html] - expected: TIMEOUT [minmax replaced IFRAME 10] expected: FAIL @@ -7,58 +6,58 @@ expected: FAIL [minmax replaced IMG svg 23] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 24] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 25] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 26] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 27] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 28] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 29] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 30] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 31] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 32] - expected: NOTRUN + expected: FAIL [minmax replaced IMG svg 33] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 34] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 35] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 36] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 37] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 38] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 39] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 40] - expected: NOTRUN + expected: FAIL [minmax replaced IMG 41] - expected: NOTRUN + expected: FAIL diff --git a/tests/wpt/tests/css/css-position/position-absolute-replaced-minmax.html b/tests/wpt/tests/css/css-position/position-absolute-replaced-minmax.html index 5a76277092b..6e5c1f2be53 100644 --- a/tests/wpt/tests/css/css-position/position-absolute-replaced-minmax.html +++ b/tests/wpt/tests/css/css-position/position-absolute-replaced-minmax.html @@ -336,6 +336,7 @@ function testAfterImageLoads(img, test) { let asyncTest = async_test(getTestName(img)); + img.addEventListener("error", asyncTest.unreached_func("Load shouldn't fail")); img.addEventListener("load", _ => { asyncTest.step(test); asyncTest.done();