Release Vulpes OS 2.7-preview.24
This commit is contained in:
parent
49572b6b45
commit
97ef99f827
135 changed files with 7717 additions and 2524 deletions
|
|
@ -59,6 +59,20 @@ test('toolbar focus does not select a bar hidden behind the lockscreen or a dial
|
|||
assert.equal(selected,1);
|
||||
});
|
||||
|
||||
test('Up reopens the browser toolbar when the collapsed rocketbar search input kept focus',()=>{
|
||||
let selected=0;
|
||||
const bar={checkVisibility:()=>true,getBoundingClientRect:()=>({x:0,y:20,width:200,height:40}),
|
||||
contains:()=>true};
|
||||
const child=actor('KeypadChild');
|
||||
child.document={location:{hostname:'system.localhost'},activeElement:{id:'rocketbar-input',localName:'input',type:'search'},
|
||||
querySelector:()=>({classList:{contains:()=>false}}),querySelectorAll:()=>[bar],elementFromPoint:()=>bar,
|
||||
documentElement:{dataset:{}}};
|
||||
child.contentWindow={innerWidth:240,innerHeight:320};
|
||||
child.select=()=>selected++;
|
||||
child.receiveMessage({name:'Vulpes:Navigate',data:{key:'ArrowUp'}});
|
||||
assert.equal(selected,1);
|
||||
});
|
||||
|
||||
test('Down leaves the toolbar and routes to its page instead of retaining toolbar focus',()=>{
|
||||
let focused=false;
|
||||
const messages=[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue