ce of ToggleEvent");

test(function() {
  var event = new ToggleEvent("");
  assert_true(event instanceof window.Event);
}, "the event inherts from Event");

test(function() {
  assert_throws_js(TypeError, function() {
    new ToggleEvent();
  }, 'First argument (type) is required, so was expecting a TypeError.');
}, 'Missing type argument');

test(function() {
  var event = new ToggleEvent("test");
  assert_equals(event.type, "test");
}, "type argument is string");

test(function() {
  var event = new Togg