new ToggleEvent("test", undefined);
  assert_equals(event.oldState, "");
  assert_equals(event.newState, "");
}, "ToggleEventInit argument is undefined");

test(function() {
  var event = new ToggleEvent("test", {});
  assert_equals(event.oldState, "");
  assert_equals(event.newState, "");
}, "ToggleEventInit argument is empty dictionary");

test(function() {
  var event = new ToggleEvent("test", {oldState: "sample"});
  assert_equals(event.oldState, "sample");
}, "oldState set to 'sample'");

test(function