blob: 04aec4f14cb2e68ef2752bad45c3e2ce1752fc3d [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 Pattern attribute presence test
*/
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
document.body.setInnerHtml('''
<p>There an input element with the pattern attribute set.</p>
<input name="victim" pattern="something" />
''', treeSanitizer: new NullTreeSanitizer());
var v = document.getElementsByName("victim");
shouldBe(v[0].pattern, "something");
}