@use "true" as *;
@use "example" as *;
@use "../src/utils/mode";

@include test-module("ESR Mode [mix]") {
  @include mode.ESR;

  @include test("simple") {
    @include assert {
      @include output {
        @if mode.isESR() {
          @include example;
        }
      }
      @include expect {
        @include example;
      }
    }
    @include assert {
      @include output {
        @if mode.isSTANDARD() {
          @include example;
        }
      }
      @include expect {
        // IGNORE
      }
    }
  }

  @include test("support pref") {
    @include mode.SUPPORT_BOOL_PREF;

    @include assert {
      @include output {
        @if mode.isMediaBoolPref() {
          @include example;
        }
      }
      @include expect {
        // IGNORE
      }
    }
  }

  @include test("media pref") {
    @include mode.MEDIA_BOOL_PREF;

    @include assert {
      @include output {
        @if mode.isMediaBoolPref() {
          @include example;
        }
      }
      @include expect {
        // IGNORE
      }
    }
  }
}

@include test-module("STANDARD Mode [mix]") {
  @include mode.STANDARD;

  @include test("simple") {
    @include assert {
      @include output {
        @if mode.isESR() {
          @include example;
        }
      }
      @include expect {
        // IGNORE
      }
    }
    @include assert {
      @include output {
        @if mode.isSTANDARD() {
          @include example;
        }
      }
      @include expect {
        @include example;
      }
    }
  }

  @include test("support pref") {
    @include mode.SUPPORT_BOOL_PREF;

    @include assert {
      @include output {
        @if mode.isMediaBoolPref() {
          @include example;
        }
      }
      @include expect {
        // IGNORE
      }
    }
  }

  @include test("media pref") {
    @include mode.MEDIA_BOOL_PREF;

    @include assert {
      @include output {
        @if mode.isMediaBoolPref() {
          @include example;
        }
      }
      @include expect {
        @include example;
      }
    }
  }
}
