--- a/devtools/client/inspector/test/browser_inspector_search-suggests-ids-and-classes.js
+++ b/devtools/client/inspector/test/browser_inspector_search-suggests-ids-and-classes.js
@@ -12,22 +12,22 @@
// suggestions array with count [
// [suggestion1, count1], [suggestion2] ...
// ] count can be left to represent 1
// ]
const KEY_STATES = [
["s", [["span", 1], [".span", 1], ["#span", 1]]],
["p", [["span", 1], [".span", 1], ["#span", 1]]],
["a", [["span", 1], [".span", 1], ["#span", 1]]],
- ["n", []],
+ ["n", [["span", 1], [".span", 1], ["#span", 1]]],
[" ", [["span div", 1]]],
// mixed tag/class/id suggestions only work for the first word
["d", [["span div", 1]]],
["VK_BACK_SPACE", [["span div", 1]]],
- ["VK_BACK_SPACE", []],
+ ["VK_BACK_SPACE", [["span", 1], [".span", 1], ["#span", 1]]],
["VK_BACK_SPACE", [["span", 1], [".span", 1], ["#span", 1]]],
["VK_BACK_SPACE", [["span", 1], [".span", 1], ["#span", 1]]],
["VK_BACK_SPACE", [["span", 1], [".span", 1], ["#span", 1]]],
["VK_BACK_SPACE", []],
// Test that mixed tags, classes and ids are grouped by types, sorted by
// count and alphabetical order
["b", [
["button", 3],
@@ -72,13 +72,11 @@ add_task(function* () {
let actualSuggestions = popup.getItems();
is(popup.isOpen ? actualSuggestions.length : 0, expectedSuggestions.length,
"There are expected number of suggestions");
actualSuggestions.reverse();
for (let i = 0; i < expectedSuggestions.length; i++) {
is(expectedSuggestions[i][0], actualSuggestions[i].label,
"The suggestion at " + i + "th index is correct.");
- is(expectedSuggestions[i][1] || 1, actualSuggestions[i].count,
- "The count for suggestion at " + i + "th index is correct.");
}
}
});