summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/markup
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /devtools/client/inspector/markup
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/inspector/markup')
-rw-r--r--devtools/client/inspector/markup/test/browser_markup_screenshot_node_about_page.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/client/inspector/markup/test/browser_markup_screenshot_node_about_page.js b/devtools/client/inspector/markup/test/browser_markup_screenshot_node_about_page.js
index 4d8f4ff6a6..21dcf844b7 100644
--- a/devtools/client/inspector/markup/test/browser_markup_screenshot_node_about_page.js
+++ b/devtools/client/inspector/markup/test/browser_markup_screenshot_node_about_page.js
@@ -23,12 +23,12 @@ add_task(async function () {
info("Select the main content node");
await selectNode(".main-content", inspector);
- let inContentPageBackgroundColor = await getComputedStyleProperty(
+ let pageBackgroundColor = await getComputedStyleProperty(
":root",
null,
- "--in-content-page-background"
+ "background-color"
);
- inContentPageBackgroundColor = inContentPageBackgroundColor.trim();
+ pageBackgroundColor = pageBackgroundColor.trim();
info("Take a screenshot of the element and verify it looks as expected");
const image = await takeNodeScreenshot(inspector);
@@ -38,7 +38,7 @@ add_task(async function () {
image,
x: 0,
y: 0,
- expectedColor: hexToCSS(inContentPageBackgroundColor),
+ expectedColor: hexToCSS(pageBackgroundColor),
label: "The screenshot was taken",
});