blob: 6bb24ec8614142e5ba0f2a74898a8f900f1f90d7 [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 set 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");
v[0].pattern += " else";
shouldBe(v[0].pattern, "something else");
}