 style.sheet;
}

test(function(t) {
  var sheet = makeSheet(t);
  sheet.insertRule('@media {}', 0);

  assert_equals(sheet.cssRules.length, 1);
  assert_equals(sheet.cssRules[0].cssText, '@media  {\n}');
}, 'empty media query list');

test(function(t) {
  var sheet = makeSheet(t);
  sheet.insertRule('@media all {}');
  sheet.insertRule('@media print {}');
  sheet.insertRule('@media screen {}');
  sheet.insertRule('@media speech {}');

  assert_equals(sheet.cssRules.length, 4);
  assert_equals(sheet.cssRules