Tests we properly emit Browser.downloadWillBegin. Running test for Browser target... Downloading via a navigation: downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?download=1 } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } } file path: /hello.txt Downloading via a navigation of subframe: downloadWillBegin from child frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?download=1 } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } } file path: /hello.txt Downloading by clicking a link: downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.text url : http://127.0.0.1:8000/devtools/network/resources/resource.php } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } } file path: /hello.text Downloading by clicking a link in subframe: downloadWillBegin from child frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.text url : http://127.0.0.1:8000/devtools/network/resources/resource.php } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } } file path: /hello.text Downloading by clicking a link (no HTTP Content-Disposition header, a[download=""]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : download.zzz url : http://127.0.0.1:8000/devtools/network/resources/download.zzz } } Downloading by clicking a link (HTTP Content-Disposition header with filename=foo.txt, no a[download]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : foo.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download=foo.txt } } Downloading by clicking a link (HTTP Content-Disposition header with filename=override.txt, a[download="foo.txt"]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : override.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download=override.txt } } Downloading by clicking a link (HTTP Content-Disposition header without filename, no a[download]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : resource.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download } } Downloading by clicking a link (HTTP Content-Disposition header without filename, no a[download], js): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : resource.js url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download&type=js } } Downloading by clicking a link (HTTP Content-Disposition header without filename, no a[download], image): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : resource.png url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download&type=image } } Running test for Frame target... Downloading via a navigation: downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?download=1 } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } sessionId : } file path: /hello.txt Downloading via a navigation of subframe: downloadWillBegin from child frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?download=1 } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } sessionId : } file path: /hello.txt Downloading by clicking a link: downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.text url : http://127.0.0.1:8000/devtools/network/resources/resource.php } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } sessionId : } file path: /hello.text Downloading by clicking a link in subframe: downloadWillBegin from child frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : hello.text url : http://127.0.0.1:8000/devtools/network/resources/resource.php } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { guid : receivedBytes : state : inProgress totalBytes : 11 } sessionId : } downloadProgress has expected guid: true { method : Browser.downloadProgress params : { filePath : guid : receivedBytes : state : completed totalBytes : 11 } sessionId : } file path: /hello.text Downloading by clicking a link (no HTTP Content-Disposition header, a[download=""]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : download.zzz url : http://127.0.0.1:8000/devtools/network/resources/download.zzz } sessionId : } Downloading by clicking a link (HTTP Content-Disposition header with filename=foo.txt, no a[download]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : foo.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download=foo.txt } sessionId : } Downloading by clicking a link (HTTP Content-Disposition header with filename=override.txt, a[download="foo.txt"]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : override.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download=override.txt } sessionId : } Downloading by clicking a link (HTTP Content-Disposition header without filename, no a[download]): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : resource.txt url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download } sessionId : } Downloading by clicking a link (HTTP Content-Disposition header without filename, no a[download], js): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : resource.js url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download&type=js } sessionId : } Downloading by clicking a link (HTTP Content-Disposition header without filename, no a[download], image): downloadWillBegin from top frame: { method : Browser.downloadWillBegin params : { frameId : guid : suggestedFilename : resource.png url : http://127.0.0.1:8000/devtools/network/resources/resource.php?named_download&type=image } sessionId : }