}, "Test parsing '" + query + "' with matchMedia");
}

function test_resolution_parsing() {
    test_parsing("(min-resolution: 1x)");
    test_parsing("(min-resolution: calc(1x))", "(min-resolution: calc(1dppx))");
    test_parsing("(resolution: 2x)");
    test_parsing("(resolution: calc(2x))", "(resolution: calc(2dppx))");
    test_parsing("(max-resolution: 7x)");
    test_parsing("(max-resolution: calc(7x))", "(max-resolution: calc(7dppx))");

    test_parsing("(resolution: 2dppx)");
    test_parsing("(re