1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add more live tv buttons

This commit is contained in:
Luke Pulverenti 2015-08-24 23:13:04 -04:00
parent 4094adb5a7
commit f491228119
114 changed files with 1076 additions and 310 deletions

View file

@ -50,31 +50,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
c1 = fixture('NoLabel');
});
test('check checkbox via click', function() {
test('check checkbox via click', function(done) {
c1.addEventListener('click', function() {
assert.isTrue(c1.getAttribute('aria-checked') == 'true');
assert.isTrue(c1.checked);
done();
});
MockInteractions.tap(c1);
});
test('toggle checkbox via click', function() {
test('toggle checkbox via click', function(done) {
c1.checked = true;
c1.addEventListener('click', function() {
assert.isFalse(c1.getAttribute('aria-checked') != 'false');
assert.isFalse(c1.checked);
done();
});
MockInteractions.tap(c1);
});
test('disabled checkbox cannot be clicked', function() {
test('disabled checkbox cannot be clicked', function(done) {
c1.disabled = true;
c1.checked = true;
c1.addEventListener('click', function() {
MockInteractions.tap(c1);
setTimeout(function() {
assert.isTrue(c1.getAttribute('aria-checked') == 'true');
assert.isTrue(c1.checked);
});
MockInteractions.tap(c1);
done();
}, 1);
});
test('checkbox can be validated', function() {
c1.required = true;
assert.isFalse(c1.validate());
c1.checked = true;
assert.isTrue(c1.validate());
});
test('disabled checkbox is always valid', function() {
c1.disabled = true;
c1.required = true;
assert.isTrue(c1.validate());
c1.checked = true;
assert.isTrue(c1.validate());
});
test('checkbox label can be updated', function() {