Firefox-UI-Fix/__tests__/option.test.scss
2022-03-18 10:23:50 +09:00

82 lines
1.8 KiB
SCSS

@use 'true' as *;
@use "../src/utils/option";
@include test-module("If exist pref [mix]") {
@include test("simple") {
@include assert {
@include output {
@include option.Option("userChrome.tab.photon") {
body {
font-size: 16px;
}
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) {
body {
font-size: 16px;
}
}
}
}
}
@include test("multiple") {
@include assert {
@include output {
@include option.Option("userChrome.tab.photon", "userChrome.padding.photon") {
body {
font-size: 16px;
}
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) or -moz-bool-pref(userChrome.padding.photon) {
body {
font-size: 16px;
}
}
}
}
}
}
@include test-module("If not exist pref [mx]") {
@include test("simple") {
@include assert {
@include output {
@include option.NotOption("userChrome.tab.photon") {
body {
font-size: 16px;
}
}
}
@include expect {
@supports not -moz-bool-pref(userChrome.tab.photon) {
body {
font-size: 16px;
}
}
}
}
}
@include test("multiple") {
@include assert {
@include output {
@include option.Option("userChrome.tab.photon", "userChrome.padding.photon") {
body {
font-size: 16px;
}
}
}
@include expect {
@supports -moz-bool-pref(userChrome.tab.photon) or -moz-bool-pref(userChrome.padding.photon) {
body {
font-size: 16px;
}
}
}
}
}
}