mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 942774 - Fix files loaded into scratchpad to be recognized as "saved". r=benvie
This commit is contained in:
parent
f87abe03e2
commit
4603961146
@ -982,6 +982,7 @@ var Scratchpad = {
|
||||
|
||||
this.editor.setText(content);
|
||||
this.editor.clearHistory();
|
||||
this.dirty = false;
|
||||
document.getElementById("sp-cmd-revert").setAttribute("disabled", true);
|
||||
}
|
||||
else if (!aSilentError) {
|
||||
|
@ -53,6 +53,9 @@ function fileImported(aStatus, aFileContent)
|
||||
is(gScratchpad.getText(), gFileContent,
|
||||
"the editor content is correct");
|
||||
|
||||
is(gScratchpad.dirty, false,
|
||||
"the editor marks imported file as saved");
|
||||
|
||||
// Save the file after changes.
|
||||
gFileContent += "// omg, saved!";
|
||||
gScratchpad.editor.setText(gFileContent);
|
||||
|
Loading…
Reference in New Issue
Block a user