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
// it('does not convert mess pseudos with scriptlets', () => {
588
-
// let rule;
589
-
// let result;
590
-
591
-
// rule = 'example.org#$#selector:style()';
592
-
// result = convertRulesToAdgSyntax([rule]);
593
-
// expect(result).toHaveLength(1);
594
-
// expect(result).toContain(rule);
595
-
596
-
// rule = 'yamareco.com#$#body.header_bg_ad.modal-open:style(padding-right: auto !important;overflow: auto!important)';
597
-
// result = convertRulesToAdgSyntax([rule]);
598
-
// expect(result).toHaveLength(1);
599
-
// expect(result).toContain(rule);
600
-
// });
586
+
it('does not convert mess pseudos with scriptlets',()=>{
587
+
letrule;
588
+
letresult;
589
+
constexcluded=[];
590
+
591
+
rule='example.org#$#selector:style()';
592
+
result=convertRulesToAdgSyntax([rule],excluded);
593
+
expect(result).toHaveLength(0);
594
+
expect(excluded).toHaveLength(2);
595
+
expect(excluded).toEqual(
596
+
[
597
+
'! Unable to convert rule to AdGuard syntax: "example.org#$#selector:style()" due to error: \'AdblockPlus\' syntax cannot be mixed with \'UblockOrigin\' syntax',
598
+
'example.org#$#selector:style()',
599
+
],
600
+
);
601
+
602
+
rule='yamareco.com#$#body.header_bg_ad.modal-open:style(padding-right: auto !important;overflow: auto!important)';
603
+
excluded.length=0;
604
+
result=convertRulesToAdgSyntax([rule],excluded);
605
+
expect(result).toHaveLength(0);
606
+
expect(excluded).toHaveLength(2);
607
+
expect(excluded).toEqual(
608
+
[
609
+
'! Unable to convert rule to AdGuard syntax: "yamareco.com#$#body.header_bg_ad.modal-open:style(padding-right: auto !important;overflow: auto!important)" due to error: \'AdblockPlus\' syntax cannot be mixed with \'UblockOrigin\' syntax',
610
+
'yamareco.com#$#body.header_bg_ad.modal-open:style(padding-right: auto !important;overflow: auto!important)',
0 commit comments