mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-05-11 15:56:04 +00:00
29 lines
755 B
JavaScript
29 lines
755 B
JavaScript
/*
|
|
* Copyright 2013 The Polymer Authors. All rights reserved.
|
|
* Use of this source code is goverened by a BSD-style
|
|
* license that can be found in the LICENSE file.
|
|
*/
|
|
|
|
suite('HTMLKeygenElement', function() {
|
|
// Not implemented in Firefox.
|
|
if (!window.HTMLKeygenElement)
|
|
return;
|
|
|
|
test('form', function() {
|
|
var form = document.createElement('form');
|
|
var keygen = document.createElement('keygen');
|
|
form.appendChild(keygen);
|
|
assert.equal(keygen.form, form);
|
|
});
|
|
|
|
test('instanceof', function() {
|
|
assert.instanceOf(document.createElement('keygen'), HTMLKeygenElement);
|
|
});
|
|
|
|
test('constructor', function() {
|
|
assert.equal(HTMLKeygenElement,
|
|
document.createElement('keygen').constructor);
|
|
});
|
|
|
|
});
|