blob: 3d50548ab28589bccb897f8e31dbf8dfa6f7986a [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() {
var finishTest;
document.body.innerHtml = 'PASS';
asyncStart();
window.onLoad.listen((_) {
var element = document.body.append(document.createElement("a"));
element.setAttributeNS("namespace", "id", "foo");
element.setAttribute("id", "bar");
element.remove();
element = null;
gc();
setTimeout(finishTest, 0);
});
finishTest = ()
{
document.getElementById("bar");
asyncEnd();
};
}