Fix: Option - Make to quoted

This commit is contained in:
alstjr7375 2022-03-22 06:33:17 +09:00
parent 710172211c
commit 32823f73a0
6 changed files with 149 additions and 138 deletions

View file

@ -65,31 +65,31 @@
}
}
@include test("prefix custom seperator single") {
@include test("prefix custom option") {
@include assert {
@include output {
@include each.AtEach("supports", "userChrome.tab.photon", "-moz-bool-pref", " or ") {
@include each.AtEach("supports", "userChrome.tab.photon", "-moz-bool-pref", ("seperator": " or ", "quoted": true)) {
@include example;
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) {
@supports -moz-bool-pref("userChrome.tab.photon") {
@include example;
}
}
}
}
@include test("prefix custom seperator multiple") {
@include test("prefix custom option multiple") {
@include assert {
@include output {
$input: "userChrome.tab.photon" "userChrome.padding.photon";
@include each.AtEach("supports", $input, "-moz-bool-pref", " or ") {
@include each.AtEach("supports", $input, "-moz-bool-pref", ("seperator": " or ", "quoted": true)) {
@include example;
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) or -moz-bool-pref(userChrome.padding.photon) {
@supports -moz-bool-pref("userChrome.tab.photon") or -moz-bool-pref("userChrome.padding.photon") {
@include example;
}
}

View file

@ -11,7 +11,7 @@
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) {
@supports -moz-bool-pref("userChrome.tab.photon") {
@include example;
}
}
@ -26,7 +26,7 @@
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) or -moz-bool-pref(userChrome.padding.photon) {
@supports -moz-bool-pref("userChrome.tab.photon") or -moz-bool-pref("userChrome.padding.photon") {
@include example;
}
}
@ -43,7 +43,7 @@
}
}
@include expect {
@supports not -moz-bool-pref(userChrome.tab.photon) {
@supports not -moz-bool-pref("userChrome.tab.photon") {
@include example;
}
}
@ -58,7 +58,7 @@
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) or -moz-bool-pref(userChrome.padding.photon) {
@supports -moz-bool-pref("userChrome.tab.photon") or -moz-bool-pref("userChrome.padding.photon") {
@include example;
}
}