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
e33b6582a5
commit
4e07087022
@ -982,6 +982,7 @@ var Scratchpad = {
|
|||||||
|
|
||||||
this.editor.setText(content);
|
this.editor.setText(content);
|
||||||
this.editor.clearHistory();
|
this.editor.clearHistory();
|
||||||
|
this.dirty = false;
|
||||||
document.getElementById("sp-cmd-revert").setAttribute("disabled", true);
|
document.getElementById("sp-cmd-revert").setAttribute("disabled", true);
|
||||||
}
|
}
|
||||||
else if (!aSilentError) {
|
else if (!aSilentError) {
|
||||||
|
@ -53,6 +53,9 @@ function fileImported(aStatus, aFileContent)
|
|||||||
is(gScratchpad.getText(), gFileContent,
|
is(gScratchpad.getText(), gFileContent,
|
||||||
"the editor content is correct");
|
"the editor content is correct");
|
||||||
|
|
||||||
|
is(gScratchpad.dirty, false,
|
||||||
|
"the editor marks imported file as saved");
|
||||||
|
|
||||||
// Save the file after changes.
|
// Save the file after changes.
|
||||||
gFileContent += "// omg, saved!";
|
gFileContent += "// omg, saved!";
|
||||||
gScratchpad.editor.setText(gFileContent);
|
gScratchpad.editor.setText(gFileContent);
|
||||||
|
Loading…
Reference in New Issue
Block a user