ent.newState, "1,2,3");
}, "newState set to [1, 2, 3]");

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

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