ewState, "sample");
}, "newState set to 'sample'");

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

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

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

test(function()