blob: 721db2f7a129f60703f8eb48ab799ccd300b35a6 [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.
*/
/**
* @assertion final String tagName
* The name of the tag for the given element.
* @description Checks tagName of unknown element
*/
import "dart:html";
import "../../../Utils/expect.dart";
import "../testcommon.dart";
main() {
var tag = 'foobar';
Element x =
new Element.html('<$tag></$tag>', treeSanitizer: new NullTreeSanitizer());
Expect.equals(tag.toUpperCase(), x.tagName);
}