From a9b6041d38b877319c740fe7c31e8a1a235d7764 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Wed, 25 Jan 2023 16:02:44 +0100 Subject: [PATCH] chore: remove unused files in spec/fixtures (#37012) Co-authored-by: Milan Burda --- spec/fixtures/api/native-window-open-argv.html | 8 -------- .../preload-pdf-loaded-in-nested-subframe.js | 15 --------------- .../module/preload-pdf-loaded-in-subframe.js | 10 ---------- spec/fixtures/module/preload-pdf-loaded.js | 5 ----- spec/fixtures/pages/target-name.html | 13 ------------- spec/fixtures/zip/a.zip | Bin 158 -> 0 bytes 6 files changed, 51 deletions(-) delete mode 100644 spec/fixtures/api/native-window-open-argv.html delete mode 100644 spec/fixtures/module/preload-pdf-loaded-in-nested-subframe.js delete mode 100644 spec/fixtures/module/preload-pdf-loaded-in-subframe.js delete mode 100644 spec/fixtures/module/preload-pdf-loaded.js delete mode 100644 spec/fixtures/pages/target-name.html delete mode 100644 spec/fixtures/zip/a.zip diff --git a/spec/fixtures/api/native-window-open-argv.html b/spec/fixtures/api/native-window-open-argv.html deleted file mode 100644 index fa613b1bf7a0..000000000000 --- a/spec/fixtures/api/native-window-open-argv.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/spec/fixtures/module/preload-pdf-loaded-in-nested-subframe.js b/spec/fixtures/module/preload-pdf-loaded-in-nested-subframe.js deleted file mode 100644 index e72a4a4058db..000000000000 --- a/spec/fixtures/module/preload-pdf-loaded-in-nested-subframe.js +++ /dev/null @@ -1,15 +0,0 @@ -const { ipcRenderer } = require('electron'); - -document.addEventListener('DOMContentLoaded', (event) => { - const outerFrame = document.querySelector('#outer-frame'); - if (outerFrame) { - outerFrame.onload = function () { - const pdframe = outerFrame.contentWindow.document.getElementById('pdf-frame'); - if (pdframe) { - pdframe.contentWindow.addEventListener('pdf-loaded', (event) => { - ipcRenderer.send('pdf-loaded', event.detail); - }); - } - }; - } -}); diff --git a/spec/fixtures/module/preload-pdf-loaded-in-subframe.js b/spec/fixtures/module/preload-pdf-loaded-in-subframe.js deleted file mode 100644 index dd7a7aaa42d6..000000000000 --- a/spec/fixtures/module/preload-pdf-loaded-in-subframe.js +++ /dev/null @@ -1,10 +0,0 @@ -const { ipcRenderer } = require('electron'); - -document.addEventListener('DOMContentLoaded', (event) => { - const subframe = document.querySelector('#pdf-frame'); - if (subframe) { - subframe.contentWindow.addEventListener('pdf-loaded', (event) => { - ipcRenderer.send('pdf-loaded', event.detail); - }); - } -}); diff --git a/spec/fixtures/module/preload-pdf-loaded.js b/spec/fixtures/module/preload-pdf-loaded.js deleted file mode 100644 index aa5c8fb4ffac..000000000000 --- a/spec/fixtures/module/preload-pdf-loaded.js +++ /dev/null @@ -1,5 +0,0 @@ -const { ipcRenderer } = require('electron'); - -window.addEventListener('pdf-loaded', function (event) { - ipcRenderer.send('pdf-loaded', event.detail); -}); diff --git a/spec/fixtures/pages/target-name.html b/spec/fixtures/pages/target-name.html deleted file mode 100644 index 0dc760d233f5..000000000000 --- a/spec/fixtures/pages/target-name.html +++ /dev/null @@ -1,13 +0,0 @@ - - -link - - - diff --git a/spec/fixtures/zip/a.zip b/spec/fixtures/zip/a.zip deleted file mode 100644 index 7b3a13209f551fa810a0867be3e9c511a4062ea3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 158 zcmWIWW@h1H0D;D`PflP4ln`JLU?|Ni$t=l9O;Je8&q+xw(hrT`VVF4Kc_0XXWfWlu o@MdHZWyYnS2WFhZTSpKR(=-maX#w7>Y#=p^K