diff --git a/src/config.js b/src/config.js index 02a15cbc..18f2ee44 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,5 @@ const appConfig = require('application-config')('WebTorrent') const fs = require('fs') -const os = require('os') const path = require('path') const electron = require('electron') @@ -10,7 +9,7 @@ const APP_VERSION = require('../package.json').version const IS_TEST = isTest() const PORTABLE_PATH = IS_TEST - ? path.join(process.platform === 'win32' ? os.tmpdir() : '/tmp', 'WebTorrentTest') + ? path.join(process.platform === 'win32' ? 'C:\\Windows\\Temp' : '/tmp', 'WebTorrentTest') : path.join(path.dirname(process.execPath), 'Portable Settings') const IS_PORTABLE = isPortable() const IS_PRODUCTION = isProduction() diff --git a/test/config.js b/test/config.js index a99f5e2a..50c333f9 100644 --- a/test/config.js +++ b/test/config.js @@ -1,7 +1,7 @@ const path = require('path') -const os = require('os') -const TEST_DIR = path.join(process.platform === 'win32' ? os.tmpdir() : '/tmp', 'WebTorrentTest') +const TEMP_DIR = process.platform === 'win32' ? 'C:\\Windows\\Temp' : '/tmp' +const TEST_DIR = path.join(TEMP_DIR, 'WebTorrentTest') const TEST_DIR_DOWNLOAD = path.join(TEST_DIR, 'Downloads') const TEST_DIR_DESKTOP = path.join(TEST_DIR, 'Desktop') diff --git a/test/screenshots/win32/add-torrent-0-percent.png b/test/screenshots/win32/add-torrent-0-percent.png new file mode 100644 index 00000000..800128a8 Binary files /dev/null and b/test/screenshots/win32/add-torrent-0-percent.png differ diff --git a/test/screenshots/win32/app-basic.png b/test/screenshots/win32/app-basic.png new file mode 100644 index 00000000..fc616f4e Binary files /dev/null and b/test/screenshots/win32/app-basic.png differ diff --git a/test/screenshots/win32/create-torrent-100-percent.png b/test/screenshots/win32/create-torrent-100-percent.png new file mode 100644 index 00000000..43e9840b Binary files /dev/null and b/test/screenshots/win32/create-torrent-100-percent.png differ diff --git a/test/screenshots/win32/create-torrent-advanced.png b/test/screenshots/win32/create-torrent-advanced.png new file mode 100644 index 00000000..16f38423 Binary files /dev/null and b/test/screenshots/win32/create-torrent-advanced.png differ diff --git a/test/screenshots/win32/create-torrent-simple.png b/test/screenshots/win32/create-torrent-simple.png new file mode 100644 index 00000000..305e1755 Binary files /dev/null and b/test/screenshots/win32/create-torrent-simple.png differ diff --git a/test/screenshots/win32/play-torrent-bbb.png b/test/screenshots/win32/play-torrent-bbb.png new file mode 100644 index 00000000..41f104b9 Binary files /dev/null and b/test/screenshots/win32/play-torrent-bbb.png differ diff --git a/test/screenshots/win32/play-torrent-return.png b/test/screenshots/win32/play-torrent-return.png new file mode 100644 index 00000000..254bb0d7 Binary files /dev/null and b/test/screenshots/win32/play-torrent-return.png differ diff --git a/test/screenshots/win32/play-torrent-wired-2.png b/test/screenshots/win32/play-torrent-wired-2.png new file mode 100644 index 00000000..f7ff49ef Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired-2.png differ diff --git a/test/screenshots/win32/play-torrent-wired-3.png b/test/screenshots/win32/play-torrent-wired-3.png new file mode 100644 index 00000000..15d66d22 Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired-3.png differ diff --git a/test/screenshots/win32/play-torrent-wired-4.png b/test/screenshots/win32/play-torrent-wired-4.png new file mode 100644 index 00000000..15d66d22 Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired-4.png differ diff --git a/test/screenshots/win32/play-torrent-wired-5.png b/test/screenshots/win32/play-torrent-wired-5.png new file mode 100644 index 00000000..15d66d22 Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired-5.png differ diff --git a/test/screenshots/win32/play-torrent-wired-fullscreen.png b/test/screenshots/win32/play-torrent-wired-fullscreen.png new file mode 100644 index 00000000..1710eb6b Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired-fullscreen.png differ diff --git a/test/screenshots/win32/play-torrent-wired-list.png b/test/screenshots/win32/play-torrent-wired-list.png new file mode 100644 index 00000000..411644ae Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired-list.png differ diff --git a/test/screenshots/win32/play-torrent-wired.png b/test/screenshots/win32/play-torrent-wired.png new file mode 100644 index 00000000..319bd8dc Binary files /dev/null and b/test/screenshots/win32/play-torrent-wired.png differ diff --git a/test/screenshots/win32/prefs-basic.png b/test/screenshots/win32/prefs-basic.png new file mode 100644 index 00000000..8d60d682 Binary files /dev/null and b/test/screenshots/win32/prefs-basic.png differ diff --git a/test/screenshots/win32/torrent-list-cosmos-delete-data.png b/test/screenshots/win32/torrent-list-cosmos-delete-data.png new file mode 100644 index 00000000..46867f11 Binary files /dev/null and b/test/screenshots/win32/torrent-list-cosmos-delete-data.png differ diff --git a/test/screenshots/win32/torrent-list-cosmos-deleted.png b/test/screenshots/win32/torrent-list-cosmos-deleted.png new file mode 100644 index 00000000..3c8bb78b Binary files /dev/null and b/test/screenshots/win32/torrent-list-cosmos-deleted.png differ diff --git a/test/screenshots/win32/torrent-list-cosmos-expand-deselect.png b/test/screenshots/win32/torrent-list-cosmos-expand-deselect.png new file mode 100644 index 00000000..118c2ef0 Binary files /dev/null and b/test/screenshots/win32/torrent-list-cosmos-expand-deselect.png differ diff --git a/test/screenshots/win32/torrent-list-cosmos-expand-start.png b/test/screenshots/win32/torrent-list-cosmos-expand-start.png new file mode 100644 index 00000000..e9782852 Binary files /dev/null and b/test/screenshots/win32/torrent-list-cosmos-expand-start.png differ diff --git a/test/screenshots/win32/torrent-list-cosmos-expand.png b/test/screenshots/win32/torrent-list-cosmos-expand.png new file mode 100644 index 00000000..2f3b4d03 Binary files /dev/null and b/test/screenshots/win32/torrent-list-cosmos-expand.png differ diff --git a/test/screenshots/win32/torrent-list-cosmos-hover.png b/test/screenshots/win32/torrent-list-cosmos-hover.png new file mode 100644 index 00000000..21b7c010 Binary files /dev/null and b/test/screenshots/win32/torrent-list-cosmos-hover.png differ diff --git a/test/screenshots/win32/torrent-list-delete-prompt.png b/test/screenshots/win32/torrent-list-delete-prompt.png new file mode 100644 index 00000000..e67168a2 Binary files /dev/null and b/test/screenshots/win32/torrent-list-delete-prompt.png differ diff --git a/test/screenshots/win32/torrent-list-deleted.png b/test/screenshots/win32/torrent-list-deleted.png new file mode 100644 index 00000000..254bb0d7 Binary files /dev/null and b/test/screenshots/win32/torrent-list-deleted.png differ diff --git a/test/screenshots/win32/torrent-list-download-path-missing.png b/test/screenshots/win32/torrent-list-download-path-missing.png new file mode 100644 index 00000000..b94d3597 Binary files /dev/null and b/test/screenshots/win32/torrent-list-download-path-missing.png differ diff --git a/test/screenshots/win32/torrent-list-hover-download.png b/test/screenshots/win32/torrent-list-hover-download.png new file mode 100644 index 00000000..c5944b8f Binary files /dev/null and b/test/screenshots/win32/torrent-list-hover-download.png differ diff --git a/test/screenshots/win32/torrent-list-hover.png b/test/screenshots/win32/torrent-list-hover.png new file mode 100644 index 00000000..fe95bff8 Binary files /dev/null and b/test/screenshots/win32/torrent-list-hover.png differ diff --git a/test/screenshots/win32/torrent-list-start-download.png b/test/screenshots/win32/torrent-list-start-download.png new file mode 100644 index 00000000..a2d30f16 Binary files /dev/null and b/test/screenshots/win32/torrent-list-start-download.png differ