ssRules[0].cssText.substr(0, expected.length), expected);
    }, input + ' getting CSSRule#cssText' + use_media);

    test(function() {
      var sheet = new_sheet(use_media);
      sheet.insertRule(input + ' {}', 0);
      assert_equals(sheet.cssRules[0].selectorText, expected);
    }, input + ' getting CSSStyleRule#selectorText' + use_media);

    test(function() {
      var sheet = new_sheet(use_media);
      sheet.insertRule('foobar {}', 0);
      sheet.cssRules[0].selectorText = input;
      assert_eq