(userAgentString, standAloneBoolean)
| 47 | } |
| 48 | |
| 49 | function testStandalone(userAgentString, standAloneBoolean) { |
| 50 | const platform = new Platform({ |
| 51 | navigator: { |
| 52 | standalone: standAloneBoolean, |
| 53 | userAgent: userAgentString, |
| 54 | }, |
| 55 | matchMedia: env.sandbox.stub().returns({matches: true}), |
| 56 | }); |
| 57 | expect(platform.isStandalone()).to.equal(isStandalone); |
| 58 | } |
| 59 | |
| 60 | it('should tolerate empty or null', () => { |
| 61 | testUserAgent(null); |
no test coverage detected