summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/server/tests/chrome')
-rw-r--r--devtools/server/tests/chrome/inactive-property-helper/align-content.mjs24
-rw-r--r--devtools/server/tests/chrome/memory-helpers.js2
-rw-r--r--devtools/server/tests/chrome/suspendTimeouts_content.js2
-rw-r--r--devtools/server/tests/chrome/test_inspector-hide.html2
-rw-r--r--devtools/server/tests/chrome/test_inspector-inactive-property-helper.html3
-rw-r--r--devtools/server/tests/chrome/test_inspector-pseudoclass-lock.html2
-rw-r--r--devtools/server/tests/chrome/test_memory_allocations_04.html2
-rw-r--r--devtools/server/tests/chrome/test_suspendTimeouts.js2
8 files changed, 28 insertions, 11 deletions
diff --git a/devtools/server/tests/chrome/inactive-property-helper/align-content.mjs b/devtools/server/tests/chrome/inactive-property-helper/align-content.mjs
index a871081fad..49469baf22 100644
--- a/devtools/server/tests/chrome/inactive-property-helper/align-content.mjs
+++ b/devtools/server/tests/chrome/inactive-property-helper/align-content.mjs
@@ -6,10 +6,17 @@
export default [
{
- info: "align-content is inactive on block elements (until bug 1105571 is fixed)",
+ info: "align-content is active on block elements when layout.css.align-content.blocks.enabled is true",
property: "align-content",
tagName: "div",
rules: ["div { align-content: center; }"],
+ isActive: true,
+ },
+ {
+ info: "align-content is inactive on inline elements",
+ property: "align-content",
+ tagName: "span",
+ rules: ["div { align-content: center; }"],
isActive: false,
},
{
@@ -27,7 +34,7 @@ export default [
isActive: true,
},
{
- info: "align-content is inactive on flex items",
+ info: "align-content is active on flex items (as they have a computed display of block)",
property: "align-content",
createTestElement: rootNode => {
const container = document.createElement("div");
@@ -38,10 +45,10 @@ export default [
},
rules: ["div { display: flex; }", "span { align-content: center; }"],
ruleIndex: 1,
- isActive: false,
+ isActive: true,
},
{
- info: "align-content is inactive on grid items",
+ info: "align-content is active on grid items (as they have a computed display of block)",
property: "align-content",
createTestElement: rootNode => {
const container = document.createElement("div");
@@ -52,7 +59,7 @@ export default [
},
rules: ["div { display: grid; }", "span { align-content: center; }"],
ruleIndex: 1,
- isActive: false,
+ isActive: true,
},
{
info: "align-content:baseline is active on flex items",
@@ -89,4 +96,11 @@ export default [
rules: ["div { display: table-cell; align-content: baseline; }"],
isActive: true,
},
+ {
+ info: "align-content:end is inactive on table cells until Bug 1883357 is fixed",
+ property: "align-content",
+ tagName: "div",
+ rules: ["div { display: table-cell; align-content: end; }"],
+ isActive: false,
+ },
];
diff --git a/devtools/server/tests/chrome/memory-helpers.js b/devtools/server/tests/chrome/memory-helpers.js
index e4db689134..ac24568779 100644
--- a/devtools/server/tests/chrome/memory-helpers.js
+++ b/devtools/server/tests/chrome/memory-helpers.js
@@ -57,7 +57,7 @@ async function destroyServerAndFinish(target) {
}
function waitForTime(ms) {
- return new Promise((resolve, reject) => {
+ return new Promise(resolve => {
setTimeout(resolve, ms);
});
}
diff --git a/devtools/server/tests/chrome/suspendTimeouts_content.js b/devtools/server/tests/chrome/suspendTimeouts_content.js
index cb41653cff..3114578877 100644
--- a/devtools/server/tests/chrome/suspendTimeouts_content.js
+++ b/devtools/server/tests/chrome/suspendTimeouts_content.js
@@ -62,7 +62,7 @@ function resume_timeouts() {
// The buggy code calls this handler from the resumeTimeouts call, before the
// main thread returns to the event loop. The correct code calls this only once
// the JavaScript invocation that called resumeTimeouts has run to completion.
-function handle_echo({ data }) {
+function handle_echo() {
ok(
resumeTimeouts_has_returned,
"worker message delivered from main event loop"
diff --git a/devtools/server/tests/chrome/test_inspector-hide.html b/devtools/server/tests/chrome/test_inspector-hide.html
index e699400ee0..ea6ed74560 100644
--- a/devtools/server/tests/chrome/test_inspector-hide.html
+++ b/devtools/server/tests/chrome/test_inspector-hide.html
@@ -40,7 +40,7 @@ addTest(function testRearrange() {
const computed = gInspectee.defaultView.getComputedStyle(listNode);
is(computed.visibility, "visible", "Node should be visible to start with");
return gWalker.hideNode(listFront);
- }).then(response => {
+ }).then(() => {
const computed = gInspectee.defaultView.getComputedStyle(listNode);
is(computed.visibility, "hidden", "Node should be hidden");
return gWalker.unhideNode(listFront);
diff --git a/devtools/server/tests/chrome/test_inspector-inactive-property-helper.html b/devtools/server/tests/chrome/test_inspector-inactive-property-helper.html
index 86c783c035..c3d9d26aee 100644
--- a/devtools/server/tests/chrome/test_inspector-inactive-property-helper.html
+++ b/devtools/server/tests/chrome/test_inspector-inactive-property-helper.html
@@ -16,15 +16,18 @@ SimpleTest.waitForExplicitFinish();
const INACTIVE_CSS_PREF = "devtools.inspector.inactive.css.enabled";
const CUSTOM_HIGHLIGHT_API = "dom.customHighlightAPI.enabled";
const TEXT_WRAP_BALANCE = "layout.css.text-wrap-balance.enabled";
+ const ALIGN_CONTENT_BLOCKS = "layout.css.align-content.blocks.enabled";
Services.prefs.setBoolPref(INACTIVE_CSS_PREF, true);
Services.prefs.setBoolPref(CUSTOM_HIGHLIGHT_API, true);
Services.prefs.setBoolPref(TEXT_WRAP_BALANCE, true);
+ Services.prefs.setBoolPref(ALIGN_CONTENT_BLOCKS, true);
SimpleTest.registerCleanupFunction(() => {
Services.prefs.clearUserPref(INACTIVE_CSS_PREF);
Services.prefs.clearUserPref(CUSTOM_HIGHLIGHT_API);
Services.prefs.clearUserPref(TEXT_WRAP_BALANCE);
+ Services.prefs.clearUserPref(ALIGN_CONTENT_BLOCKS);
});
const FOLDER = "./inactive-property-helper";
diff --git a/devtools/server/tests/chrome/test_inspector-pseudoclass-lock.html b/devtools/server/tests/chrome/test_inspector-pseudoclass-lock.html
index 949066255d..c40a94d469 100644
--- a/devtools/server/tests/chrome/test_inspector-pseudoclass-lock.html
+++ b/devtools/server/tests/chrome/test_inspector-pseudoclass-lock.html
@@ -23,7 +23,7 @@ window.onload = function() {
let gInspectee = null;
let gWalker = null;
-async function setup(callback) {
+async function setup() {
const url = document.getElementById("inspectorContent").href;
const { target, doc } = await attachURL(url);
gInspectee = doc;
diff --git a/devtools/server/tests/chrome/test_memory_allocations_04.html b/devtools/server/tests/chrome/test_memory_allocations_04.html
index 8bb64c591c..ae50a38291 100644
--- a/devtools/server/tests/chrome/test_memory_allocations_04.html
+++ b/devtools/server/tests/chrome/test_memory_allocations_04.html
@@ -29,7 +29,7 @@ window.onload = function() {
}
}
- const testProbability = async function(p, expected) {
+ const testProbability = async function(p) {
info("probability = " + p);
await memory.startRecordingAllocations({
probability: p,
diff --git a/devtools/server/tests/chrome/test_suspendTimeouts.js b/devtools/server/tests/chrome/test_suspendTimeouts.js
index 614ac60cdb..d8a993fa8d 100644
--- a/devtools/server/tests/chrome/test_suspendTimeouts.js
+++ b/devtools/server/tests/chrome/test_suspendTimeouts.js
@@ -131,7 +131,7 @@ window.onload = function () {
}, 1000);
}
- function finish(message) {
+ function finish() {
SimpleTest.info("suspendTimeouts_content.js", "called finish");
SimpleTest.finish();
}