Guard browser OPFS custom session save options
This commit is contained in:
@@ -4630,6 +4630,13 @@
|
||||
};
|
||||
}
|
||||
|
||||
function opfsLoadedFileSaveOptions(loadedFile) {
|
||||
return {
|
||||
opfsPath: loadedFile.opfsPath,
|
||||
wasmPath: loadedFile.wasmPath,
|
||||
};
|
||||
}
|
||||
|
||||
async function verifyOpfsSavedText(label, loadActualText, expectedLines) {
|
||||
verifyExpectedOutput(label, await loadActualText(), expectedLines.join("\n"));
|
||||
}
|
||||
@@ -9591,10 +9598,7 @@
|
||||
5221: 5.25,
|
||||
5399: 199,
|
||||
},
|
||||
{
|
||||
opfsPath: loadedIniFileSession.parameters.opfsPath,
|
||||
wasmPath: loadedIniFileSession.parameters.wasmPath,
|
||||
},
|
||||
opfsLoadedFileSaveOptions(loadedIniFileSession.parameters),
|
||||
);
|
||||
assertOpfsSavedParameterStaging(
|
||||
"opfs_save_ini_named_parameters_staging",
|
||||
@@ -9630,10 +9634,7 @@
|
||||
const savedIniNamedToolTable = await saveMachineToolTableToOpfs(
|
||||
interp,
|
||||
iniFileMachineId,
|
||||
{
|
||||
opfsPath: loadedIniFileSession.toolTable.opfsPath,
|
||||
wasmPath: loadedIniFileSession.toolTable.wasmPath,
|
||||
},
|
||||
opfsLoadedFileSaveOptions(loadedIniFileSession.toolTable),
|
||||
);
|
||||
assertOpfsSavedToolTableStaging(
|
||||
"opfs_save_ini_named_tool_table_staging",
|
||||
@@ -9732,10 +9733,7 @@
|
||||
5221: 7.5,
|
||||
5399: 202,
|
||||
},
|
||||
{
|
||||
opfsPath: loadedIniOverrideSession.parameters.opfsPath,
|
||||
wasmPath: loadedIniOverrideSession.parameters.wasmPath,
|
||||
},
|
||||
opfsLoadedFileSaveOptions(loadedIniOverrideSession.parameters),
|
||||
);
|
||||
assertOpfsSavedParameterStaging(
|
||||
"opfs_save_explicit_parameters_staging",
|
||||
@@ -9762,10 +9760,7 @@
|
||||
const savedExplicitToolTable = await saveMachineToolTableToOpfs(
|
||||
interp,
|
||||
iniOverrideMachineId,
|
||||
{
|
||||
opfsPath: loadedIniOverrideSession.toolTable.opfsPath,
|
||||
wasmPath: loadedIniOverrideSession.toolTable.wasmPath,
|
||||
},
|
||||
opfsLoadedFileSaveOptions(loadedIniOverrideSession.toolTable),
|
||||
);
|
||||
assertOpfsSavedToolTableStaging(
|
||||
"opfs_save_explicit_tool_table_staging",
|
||||
|
||||
Reference in New Issue
Block a user