blob: cff44eb6e149e1eb05882d663383c42e7cc134dd [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 This tests that destroying a checked radio button that does
* not have a form correctly removes the radio button element from the checked
* radio buttons map. This test should ideally be run with GuardMalloc or a
* similar memory checker.
import "dart:html";
import "../../testcommon.dart";
main() {
<div>SUCCESS - Didn't crash!</div>
<div id="container"><input name="a" type="radio" checked></div>
<input name="a" id="radio" type="radio">
''', treeSanitizer: new NullTreeSanitizer());
document.getElementById('container').innerHtml = '';
document.getElementById('radio').checked = true;