blob: 4042695eaa18112e85f628655f2b124bd586b9f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
// Test that the rule-view content is correct for stylesheet generated
// with createObjectURL(cssBlob)
const TEST_URL = URL_ROOT + "doc_blob_stylesheet.html";
add_task(async function () {
await addTab(TEST_URL);
const { inspector, view } = await openRuleView();
await selectNode("h1", inspector);
is(
view.element.querySelectorAll("#noResults").length,
0,
"The no-results element is not displayed"
);
is(
view.element.querySelectorAll(".ruleview-rule").length,
2,
"There are 2 displayed rules"
);
});
|