mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
8c738547c6
commit
52f247c51a
29 changed files with 185 additions and 402 deletions
|
@ -25,6 +25,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<link rel="import" href="test-overlay.html">
|
||||
<link rel="import" href="test-overlay2.html">
|
||||
<link rel="import" href="test-buttons.html">
|
||||
<link rel="import" href="test-menu-button.html">
|
||||
|
||||
<style is="custom-style">
|
||||
iron-overlay-backdrop {
|
||||
|
@ -113,6 +114,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-fixture id="composed">
|
||||
<template>
|
||||
<test-menu-button>
|
||||
Composed overlay
|
||||
<button>Button</button>
|
||||
</test-menu-button>
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-buttons id="buttons"></test-buttons>
|
||||
<input id="focusInput" placeholder="focus input">
|
||||
|
||||
|
@ -925,6 +935,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
});
|
||||
|
||||
suite('overlay in composed tree', function() {
|
||||
test('click on overlay content does not close it', function(done) {
|
||||
var composed = fixture('composed');
|
||||
// Opens overlay.
|
||||
MockInteractions.tap(composed.$.trigger);
|
||||
composed.$.dropdown.addEventListener('iron-overlay-opened', function() {
|
||||
// Tap on button inside overlay.
|
||||
MockInteractions.tap(Polymer.dom(composed).querySelector('button'));
|
||||
Polymer.Base.async(function(){
|
||||
assert.isTrue(composed.$.dropdown.opened, 'overlay still opened');
|
||||
done();
|
||||
}, 1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
suite('a11y', function() {
|
||||
|
||||
test('overlay has aria-hidden=true when opened', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue