From edeac2f59e20af140cf5c15d55f8aeecacedc558 Mon Sep 17 00:00:00 2001 From: Ryohei Ikegami Date: Sun, 30 Apr 2017 18:53:31 +0900 Subject: [PATCH] Split test HTML file into separate ones --- spec/api-browser-window-spec.js | 6 ++-- .../api/native-window-open-blank.html | 11 +++++++ .../fixtures/api/native-window-open-file.html | 12 ++++++++ .../api/native-window-open-native-addon.html | 9 ++++++ spec/fixtures/api/native-window-open.html | 30 ------------------- 5 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 spec/fixtures/api/native-window-open-blank.html create mode 100644 spec/fixtures/api/native-window-open-file.html create mode 100644 spec/fixtures/api/native-window-open-native-addon.html delete mode 100644 spec/fixtures/api/native-window-open.html diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 703f5a6d3e..8df5e675ec 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -1099,14 +1099,14 @@ describe('BrowserWindow module', function () { assert.equal(content, 'Hello') done() }) - w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#blank')) + w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open-blank.html')) }) it('opens window of same domain with cross-scripting enabled', (done) => { ipcMain.once('answer', (event, content) => { assert.equal(content, 'Hello') done() }) - w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#file')) + w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open-file.html')) }) it('loads native addons correctly after reload', (done) => { ipcMain.once('answer', (event, content) => { @@ -1117,7 +1117,7 @@ describe('BrowserWindow module', function () { }) w.reload() }) - w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#native-addon')) + w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open-native-addon.html')) }) }) }) diff --git a/spec/fixtures/api/native-window-open-blank.html b/spec/fixtures/api/native-window-open-blank.html new file mode 100644 index 0000000000..f87495e2a3 --- /dev/null +++ b/spec/fixtures/api/native-window-open-blank.html @@ -0,0 +1,11 @@ + + + + + diff --git a/spec/fixtures/api/native-window-open-file.html b/spec/fixtures/api/native-window-open-file.html new file mode 100644 index 0000000000..fa64f56a68 --- /dev/null +++ b/spec/fixtures/api/native-window-open-file.html @@ -0,0 +1,12 @@ + + + + + diff --git a/spec/fixtures/api/native-window-open-native-addon.html b/spec/fixtures/api/native-window-open-native-addon.html new file mode 100644 index 0000000000..00192ef9ab --- /dev/null +++ b/spec/fixtures/api/native-window-open-native-addon.html @@ -0,0 +1,9 @@ + + + + + diff --git a/spec/fixtures/api/native-window-open.html b/spec/fixtures/api/native-window-open.html deleted file mode 100644 index 0d744fa678..0000000000 --- a/spec/fixtures/api/native-window-open.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -