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

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

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

test(function() {
  var event = new ToggleEvent("test", {oldState: true});
  asse