mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update polymer
This commit is contained in:
parent
64e22073e0
commit
3223d4672a
55 changed files with 359 additions and 253 deletions
|
@ -84,9 +84,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
assert.isFalse(c.invalid);
|
||||
});
|
||||
|
||||
test('has a default value of "on" when checked', function() {
|
||||
test('has a default value of "on", always', function() {
|
||||
var c = fixture('basic');
|
||||
assert.isTrue(c.value === '');
|
||||
|
||||
assert.isTrue(c.value === 'on');
|
||||
|
||||
c.checked = true;
|
||||
assert.isTrue(c.value === 'on');
|
||||
|
@ -99,6 +100,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
c.checked = true;
|
||||
assert.isTrue(c.value === 'batman');
|
||||
});
|
||||
|
||||
test('value returns "on" when no explicit value is specified', function() {
|
||||
var c = fixture('basic');
|
||||
|
||||
assert.equal(c.value, 'on', 'returns "on"');
|
||||
});
|
||||
|
||||
test('value returns the value when an explicit value is set', function() {
|
||||
var c = fixture('basic');
|
||||
|
||||
c.value = 'abc';
|
||||
assert.equal(c.value, 'abc', 'returns "abc"');
|
||||
|
||||
c.value = '123';
|
||||
assert.equal(c.value, '123', 'returns "123"');
|
||||
});
|
||||
|
||||
test('value returns "on" when value is set to undefined', function() {
|
||||
var c = fixture('basic');
|
||||
|
||||
c.value = 'abc';
|
||||
assert.equal(c.value, 'abc', 'returns "abc"');
|
||||
|
||||
c.value = undefined;
|
||||
assert.equal(c.value, 'on', 'returns "on"');
|
||||
});
|
||||
});
|
||||
|
||||
suite('a11y', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue