You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/element-hiding/main.js
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,24 @@ const expectedResults = [
7
7
{id: 'hide-empty-no-content',description: 'hide-empty rule: element containing no content is hidden',hidden: true},
8
8
{id: 'hide-empty-ad-label',description: 'hide-empty rule: element containing ad label content is hidden',hidden: true},
9
9
{id: 'hide-empty-delayed',description: 'hide-empty rule: empty element added to page after delay is hidden',hidden: true},
10
+
{id: 'hide-empty-pixel-element',description: 'hide-empty rule: element should be hidden when it contains tracking pixels',hidden: true},
10
11
{id: 'closest-empty-single-div',description: 'closest-empty rule: element containing no content is hidden',hidden: true},
11
12
{id: 'closest-empty-single-nested-div',description: 'closest-empty rule: parent of target element is hidden',hidden: true},
12
13
{id: 'closest-empty-siblings-nested-div',description: 'closest-empty rule: parent of target element with empty siblings is hidden',hidden: true},
13
14
{id: 'closest-empty-delayed-parent',description: 'closest-empty rule: parent of empty element added to page after delay is hidden',hidden: true},
15
+
{id: 'hide-empty-img-element',description: 'hide-empty rule: element should not be hidden when it contains image content',hidden: false},
16
+
{id: 'hide-empty-svg-element',description: 'hide-empty rule: element should not be hidden when it contains image content',hidden: false},
17
+
{id: 'hide-empty-input',description: 'hide-empty rule: input elements should not be hidden',hidden: false},
18
+
{id: 'hide-empty-form-element',description: 'hide-empty rule: elements containing forms should not be hidden',hidden: false},
19
+
{id: 'hide-empty-media-element',description: 'hide-empty rule: elements containing media should not be hidden',hidden: false},
14
20
{id: 'hide-empty-text-content',description: 'hide-empty rule: element containing text content is not hidden',hidden: false},
15
21
{id: 'hide-empty-frame-content',description: 'hide-empty rule: element containing iframe is not hidden',hidden: false},
16
22
{id: 'hide-empty-delayed-frame',description: 'hide-empty rule: element that loads 3p frame after delay is not hidden',hidden: false},
17
23
{id: 'hide-empty-frame-changed',description: 'hide-empty rule: about:blank iframe that changes src to load content after delay is not hidden',hidden: false},
18
24
{id: 'closest-empty-siblings-content-nested-div',description: 'closest-empty rule: parent of target element with non-empty siblings is not hidden',hidden: false},
19
25
{id: 'closest-empty-frame-content',description: 'closest-empty rule: parent of element containing iframe is not hidden',hidden: false},
20
26
{id: 'closest-empty-delayed-frame',description: 'closest-empty rule: parent of element that loads 3p frame after delay is not hidden',hidden: false},
21
-
{id: 'closest-empty-intermediate-element',description: 'closest-empty rule: intermediate elements should not be hidden when target is nested',hidden: false},
27
+
{id: 'closest-empty-img-element',description: 'closest-empty rule: element should not be hidden when it contains image content',hidden: false},
22
28
{id: 'override-basic',description: 'override rule: element is not hidden when override rule present',hidden: false}
0 commit comments