mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 00:27:40 +00:00
fix(ios): turns off the bundle-generation "test"
This commit is contained in:
parent
6f75842e1e
commit
81a3fd421e
1 changed files with 46 additions and 46 deletions
|
|
@ -15,52 +15,52 @@ class MigrationTests: XCTestCase {
|
|||
TestUtils.standardTearDown()
|
||||
}
|
||||
|
||||
// Uncomment this and set up whatever resources are needed for your test bundle in order to build one!
|
||||
func testForMigrationBundleConstruction() {
|
||||
do {
|
||||
if let sil_euro_latin = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.Keyboards.silEuroLatinKMP) as? KeyboardKeymanPackage {
|
||||
try ResourceFileManager.shared.install(resourceWithID: TestUtils.Keyboards.sil_euro_latin.fullID, from: sil_euro_latin)
|
||||
} else {
|
||||
XCTFail()
|
||||
}
|
||||
|
||||
if let sencoten_kbd_kmp = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.Keyboards.fvSencotenKMP) as? KeyboardKeymanPackage {
|
||||
try ResourceFileManager.shared.install(resourceWithID: TestUtils.Keyboards.fv_sencoten.fullID, from: sencoten_kbd_kmp)
|
||||
} else {
|
||||
XCTFail()
|
||||
}
|
||||
|
||||
if let mtntKMP = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.LexicalModels.mtntKMP) as? LexicalModelKeymanPackage {
|
||||
try ResourceFileManager.shared.install(resourceWithID: TestUtils.LexicalModels.mtnt.fullID,
|
||||
from: mtntKMP)
|
||||
} else {
|
||||
XCTFail()
|
||||
}
|
||||
|
||||
if let sencoten_lm_kmp = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.LexicalModels.sencotenKMP) as? LexicalModelKeymanPackage {
|
||||
try ResourceFileManager.shared.install(resourceWithID: TestUtils.LexicalModels.sencoten.fullID,
|
||||
from: sencoten_lm_kmp)
|
||||
} else {
|
||||
XCTFail()
|
||||
}
|
||||
|
||||
} catch {
|
||||
XCTFail("File system commands failed.")
|
||||
}
|
||||
|
||||
// Set the desired version entry for your format, if different from the actual local version.
|
||||
// Only use if you're sure the specified version has a matching file format.
|
||||
Storage.active.userDefaults.lastEngineVersion = Version.packageBasedFileReorg
|
||||
Storage.active.userDefaults.migrationLevel = 20 // migratedForKMP
|
||||
|
||||
// Note: you may need to manually pause at a certain (marked) point within this method
|
||||
// for everything to successfully write out!
|
||||
if let saveState = try? TestUtils.EngineStateBundler.createBundle(withName: "Early 14.0 with defaults") {
|
||||
self.add(saveState)
|
||||
} else {
|
||||
XCTFail()
|
||||
}
|
||||
}
|
||||
// // Uncomment this and set up whatever resources are needed for your test bundle in order to build one!
|
||||
// func testForMigrationBundleConstruction() {
|
||||
// do {
|
||||
// if let sil_euro_latin = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.Keyboards.silEuroLatinKMP) as? KeyboardKeymanPackage {
|
||||
// try ResourceFileManager.shared.install(resourceWithID: TestUtils.Keyboards.sil_euro_latin.fullID, from: sil_euro_latin)
|
||||
// } else {
|
||||
// XCTFail()
|
||||
// }
|
||||
//
|
||||
// if let sencoten_kbd_kmp = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.Keyboards.fvSencotenKMP) as? KeyboardKeymanPackage {
|
||||
// try ResourceFileManager.shared.install(resourceWithID: TestUtils.Keyboards.fv_sencoten.fullID, from: sencoten_kbd_kmp)
|
||||
// } else {
|
||||
// XCTFail()
|
||||
// }
|
||||
//
|
||||
// if let mtntKMP = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.LexicalModels.mtntKMP) as? LexicalModelKeymanPackage {
|
||||
// try ResourceFileManager.shared.install(resourceWithID: TestUtils.LexicalModels.mtnt.fullID,
|
||||
// from: mtntKMP)
|
||||
// } else {
|
||||
// XCTFail()
|
||||
// }
|
||||
//
|
||||
// if let sencoten_lm_kmp = try ResourceFileManager.shared.prepareKMPInstall(from: TestUtils.LexicalModels.sencotenKMP) as? LexicalModelKeymanPackage {
|
||||
// try ResourceFileManager.shared.install(resourceWithID: TestUtils.LexicalModels.sencoten.fullID,
|
||||
// from: sencoten_lm_kmp)
|
||||
// } else {
|
||||
// XCTFail()
|
||||
// }
|
||||
//
|
||||
// } catch {
|
||||
// XCTFail("File system commands failed.")
|
||||
// }
|
||||
//
|
||||
// // Set the desired version entry for your format, if different from the actual local version.
|
||||
// // Only use if you're sure the specified version has a matching file format.
|
||||
// Storage.active.userDefaults.lastEngineVersion = Version.packageBasedFileReorg
|
||||
// Storage.active.userDefaults.migrationLevel = 20 // migratedForKMP
|
||||
//
|
||||
// // Note: you may need to manually pause at a certain (marked) point within this method
|
||||
// // for everything to successfully write out!
|
||||
// if let saveState = try? TestUtils.EngineStateBundler.createBundle(withName: "Early 14.0 with defaults") {
|
||||
// self.add(saveState)
|
||||
// } else {
|
||||
// XCTFail()
|
||||
// }
|
||||
// }
|
||||
|
||||
func testSimpleEarly14Migration() {
|
||||
// A case where the user only has SENCOTEN installed for both keyboard & lexical model.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue