blob: 290cf122475ce836553bc6771fd23d86e5b90287 [file] [log] [blame]
/*
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @description
*/
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
document.body.setInnerHtml('''
<form method=POST></form>
''', treeSanitizer: new NullTreeSanitizer());
var form = document.body.querySelector('form');
form.onReset.listen((event) {
event.preventDefault();
shouldBeTrue(event.defaultPrevented);
asyncEnd();
});
asyncStart();
form.reset();
}