ction() {
  var event = new ToggleEvent("test", {oldState: {sample: 0.5}});
  assert_equals(event.oldState, "[object Object]");
}, "oldState set to an object");

test(function() {
  var event = new ToggleEvent("test",
      {oldState: {valueOf: function () { return 'sample'; }}});
  assert_equals(event.oldState, "[object Object]");
}, "oldState set to an object with a valueOf function");

test(function() {
  var eventInit = {oldState: "sample",newState: "sample2"};
  var event = new ToggleEvent("test", even