mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-05-11 08:51:27 +00:00
27 lines
727 B
JavaScript
27 lines
727 B
JavaScript
/*
|
|
* Copyright 2014 The Polymer Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style
|
|
* license that can be found in the LICENSE file.
|
|
*/
|
|
|
|
suite('HTMLFormElement', function() {
|
|
|
|
test('elements', function() {
|
|
var form = document.createElement('form');
|
|
var input = document.createElement('input');
|
|
form.appendChild(input);
|
|
assert.instanceOf(form.elements, HTMLCollection);
|
|
assert.equal(form.elements.length, 1);
|
|
});
|
|
|
|
test('instanceof', function() {
|
|
assert.instanceOf(document.createElement('form'), HTMLFormElement);
|
|
});
|
|
|
|
test('constructor', function() {
|
|
assert.equal(HTMLFormElement,
|
|
document.createElement('form').constructor);
|
|
});
|
|
|
|
});
|