rt_equals(event.oldState, "true");
}, "oldState set to true");

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

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

test(function() {
  var event = new ToggleEvent("test", {oldState: [1, 2, 3]});
  assert_equals(event.oldState, "1,2,3");
}, "oldState set to [1, 2, 3]");

test(fun