MCPcopy Index your code
hub / github.com/ampproject/amphtml / getWin

Function getWin

test/unit/test-mode.js:9–14  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

7
8describes.sandboxed('getMode', {}, () => {
9 function getWin(url) {
10 const win = {
11 location: parseUrlDeprecated(url),
12 };
13 return win;
14 }
15
16 it('should support different html formats for development', () => {
17 let url = 'https://www.amp-site.org#development=1';

Callers 1

test-mode.jsFile · 0.70

Calls 1

parseUrlDeprecatedFunction · 0.90

Tested by

no test coverage detected