electron/spec-main/fixtures/snapshots/proxy-window-open.snapshot.txt
loc aca2e4f968
refactor: improve feature string parsing (#23130)
* test: add pre-change snapshot of new-window event

* move to .ts file for easier diff

* refactor: improve feature string parsing logic

* test: update snapshots

* update type names per review

* update comma-separated parse test

* use for loop instead of reduce per review

* tighten up types

* avoid variable guest contents id returnValue in test snapshot
2020-04-21 16:23:00 -04:00

161 lines
No EOL
2.9 KiB
Text

[
[
"top=5,left=10,resizable=no",
{
"sender": "[WebContents]",
"frameId": 1
},
"about:blank",
"frame name",
"new-window",
{
"top": 5,
"left": 10,
"resizable": false,
"x": 10,
"y": 5,
"title": "frame name",
"webPreferences": {
"nodeIntegration": false,
"webviewTag": false,
"nodeIntegrationInSubFrames": false,
"openerId": "placeholder-opener-id"
},
"width": 800,
"height": 600,
"show": false
},
[],
{
"url": "",
"policy": "default"
},
null
],
[
"zoomFactor=2,resizable=0,x=0,y=10",
{
"sender": "[WebContents]",
"frameId": 1
},
"about:blank",
"frame name",
"new-window",
{
"resizable": false,
"x": 0,
"y": 10,
"title": "frame name",
"webPreferences": {
"zoomFactor": "2",
"nodeIntegration": false,
"webviewTag": false,
"nodeIntegrationInSubFrames": false,
"openerId": "placeholder-opener-id"
},
"width": 800,
"height": 600,
"show": false
},
[],
{
"url": "",
"policy": "default"
},
null
],
[
"backgroundColor=gray,webPreferences=0,x=100,y=100",
{
"sender": "[WebContents]",
"frameId": 1
},
"about:blank",
"frame name",
"new-window",
{
"backgroundColor": "gray",
"webPreferences": {
"nodeIntegration": false,
"webviewTag": false,
"nodeIntegrationInSubFrames": false,
"openerId": "placeholder-opener-id",
"backgroundColor": "gray"
},
"x": 100,
"y": 100,
"title": "frame name",
"width": 800,
"height": 600,
"show": false
},
[],
{
"url": "",
"policy": "default"
},
null
],
[
"x=50,y=20,title=sup",
{
"sender": "[WebContents]",
"frameId": 1
},
"about:blank",
"frame name",
"new-window",
{
"x": 50,
"y": 20,
"title": "sup",
"webPreferences": {
"nodeIntegration": false,
"webviewTag": false,
"nodeIntegrationInSubFrames": false,
"openerId": "placeholder-opener-id"
},
"width": 800,
"height": 600,
"show": false
},
[],
{
"url": "",
"policy": "default"
},
null
],
[
"show=false,top=1,left=1",
{
"sender": "[WebContents]",
"frameId": 1
},
"about:blank",
"frame name",
"new-window",
{
"show": false,
"top": 1,
"left": 1,
"x": 1,
"y": 1,
"title": "frame name",
"webPreferences": {
"nodeIntegration": false,
"webviewTag": false,
"nodeIntegrationInSubFrames": false,
"openerId": "placeholder-opener-id"
},
"width": 800,
"height": 600
},
[],
{
"url": "",
"policy": "default"
},
null
]
]