pull/5370/head
filip mertens 3 years ago
parent 98af1741c5
commit 90a426eb9d
  1. 6
      apps/remix-ide-e2e/src/tests/migrateFileSystem.test.ts
  2. 5
      apps/remix-ide/src/assets/js/init.js
  3. 94
      apps/remix-ide/src/assets/js/migrate.js
  4. 51857
      package-lock.json

@ -8,9 +8,9 @@ declare global {
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080', false)
init(browser, done, 'http://127.0.0.1:8080?testmigration', false)
},
'Should load files from Localstorage': function (browser: NightwatchBrowser) {
'Should load two workspaces': function (browser: NightwatchBrowser) {
browser.pause(60000).end()
}
}

@ -91,9 +91,10 @@ window.onload = () => {
app.setAttribute('src', versions[versionToLoad])
document.body.appendChild(app)
}
const queryString = window.location.hash
window.testmigration = queryString.includes('testmigration')
window.remixFileSystemCallback = new RemixFileSystem()
window.remixFileSystemCallback.init('RemixFileSystem', { wipe: true }).then(() => {
window.remixFileSystemCallback.init('RemixFileSystem', { wipe: !!window.testmigration }).then(() => {
window.remixFileSystem = window.remixFileSystemCallback.promises
// check if .workspaces is present in indexeddb
window.remixFileSystem.stat('.workspaces').then((dir) => {

File diff suppressed because one or more lines are too long

51857
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save