rtyRule")
      continue;
    if (rule.name == name)
      return rule;
  }
  return null;
}

function test_invalid(name) {
  test(() => {
    let rule = find_at_property_rule(name);
    assert_true(!rule);
  }, `Rule for ${name} is invalid`);
}

function test_css_text(name, expected) {
  test(() => {
    let rule = find_at_property_rule(name);
    assert_true(!!rule);
    assert_equals(rule.cssText, expected);
  }, `Rule for ${name} has expected cssText`);
}

function test_name(name) {
  test(() => {
    l