mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix for viewport props w/ only key, no value
This commit is contained in:
@@ -479,6 +479,18 @@ describe('Ionic Viewport', function() {
|
||||
|
||||
|
||||
|
||||
it('Should set viewport properties that have a key but without a value', function(){
|
||||
vportTag.content = ' keyonly, , ,, WIDTH=DeViCe-wIDTH , minimal-ui ';
|
||||
viewportLoadTag();
|
||||
|
||||
expect( viewportProperties['keyonly'] ).toEqual('_');
|
||||
expect( viewportProperties['width'] ).toEqual('device-width');
|
||||
expect( viewportProperties['minimal-ui'] ).toEqual('_');
|
||||
|
||||
viewportTagUpdate();
|
||||
expect( vportTag.content ).toEqual('keyonly, width=device-width, minimal-ui');
|
||||
});
|
||||
|
||||
it('Should get portrait (0) orientation', function(){
|
||||
window.innerWidth = 768;
|
||||
window.innerHeight = 1024;
|
||||
|
||||
Reference in New Issue
Block a user