diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/components/preferences/tests/browser_searchChangedEngine.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/preferences/tests/browser_searchChangedEngine.js')
-rw-r--r-- | browser/components/preferences/tests/browser_searchChangedEngine.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/browser/components/preferences/tests/browser_searchChangedEngine.js b/browser/components/preferences/tests/browser_searchChangedEngine.js index 0882c9775e..22baba8dd6 100644 --- a/browser/components/preferences/tests/browser_searchChangedEngine.js +++ b/browser/components/preferences/tests/browser_searchChangedEngine.js @@ -46,6 +46,10 @@ add_task(async function test_change_engine() { let row = findRow(tree, "Example"); Assert.notEqual(row, -1, "Should have found the entry"); + await TestUtils.waitForCondition( + () => tree.view.getImageSrc(row, tree.columns.getNamedColumn("engineName")), + "Should have go an image URL" + ); Assert.ok( tree.view .getImageSrc(row, tree.columns.getNamedColumn("engineName")) @@ -74,6 +78,13 @@ add_task(async function test_change_engine() { row = findRow(tree, "Example 2"); Assert.notEqual(row, -1, "Should have found the updated entry"); + await TestUtils.waitForCondition( + () => + tree.view + .getImageSrc(row, tree.columns.getNamedColumn("engineName")) + ?.includes("img456.png"), + "Should have updated the image URL" + ); Assert.ok( tree.view .getImageSrc(row, tree.columns.getNamedColumn("engineName")) |