summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/chrome/file_editor_with_autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/content/tests/chrome/file_editor_with_autocomplete.js')
-rw-r--r--toolkit/content/tests/chrome/file_editor_with_autocomplete.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/toolkit/content/tests/chrome/file_editor_with_autocomplete.js b/toolkit/content/tests/chrome/file_editor_with_autocomplete.js
index 78611efc70..acf2c9e9df 100644
--- a/toolkit/content/tests/chrome/file_editor_with_autocomplete.js
+++ b/toolkit/content/tests/chrome/file_editor_with_autocomplete.js
@@ -195,7 +195,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: type 'Mo'",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("M", { shiftKey: true }, aWindow);
synthesizeKey("o", {}, aWindow);
return true;
@@ -212,7 +212,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: select 'Mozilla' to complete the word",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("KEY_ArrowDown", {}, aWindow);
synthesizeKey("KEY_Enter", {}, aWindow);
return true;
@@ -226,7 +226,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: undo the word, but typed text shouldn't be canceled",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -239,7 +239,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: undo the typed text",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -252,7 +252,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: redo the typed text",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -265,7 +265,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: redo the word",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -278,7 +278,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case: removing all text for next test...",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("a", { accelKey: true }, aWindow);
synthesizeKey("KEY_Backspace", {}, aWindow);
return true;
@@ -293,7 +293,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: type 'mo'",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("m", {}, aWindow);
synthesizeKey("o", {}, aWindow);
return true;
@@ -310,7 +310,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: select 'Mozilla' to complete the word",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("KEY_ArrowDown", {}, aWindow);
synthesizeKey("KEY_Enter", {}, aWindow);
return true;
@@ -324,7 +324,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: undo the word, but typed text shouldn't be canceled",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -337,7 +337,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: undo the typed text",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -350,7 +350,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: redo the typed text",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -363,7 +363,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: redo the word",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -376,7 +376,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case: removing all text for next test...",
completeDefaultIndex: false,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("a", { accelKey: true }, aWindow);
synthesizeKey("KEY_Backspace", {}, aWindow);
return true;
@@ -392,7 +392,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): type 'Mo'",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("M", { shiftKey: true }, aWindow);
synthesizeKey("o", {}, aWindow);
return true;
@@ -410,7 +410,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): select 'Mozilla' to complete the word",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("KEY_ArrowDown", {}, aWindow);
synthesizeKey("KEY_Enter", {}, aWindow);
return true;
@@ -424,7 +424,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): undo the word, but typed text shouldn't be canceled",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -437,7 +437,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): undo the typed text",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -450,7 +450,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): redo the typed text",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -466,7 +466,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): redo the word",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -479,7 +479,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text exactly matches the case (completeDefaultIndex is true): removing all text for next test...",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("a", { accelKey: true }, aWindow);
synthesizeKey("KEY_Backspace", {}, aWindow);
return true;
@@ -494,7 +494,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): type 'mo'",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("m", {}, aWindow);
synthesizeKey("o", {}, aWindow);
return true;
@@ -512,7 +512,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): select 'Mozilla' to complete the word",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("KEY_ArrowDown", {}, aWindow);
synthesizeKey("KEY_Enter", {}, aWindow);
return true;
@@ -528,7 +528,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): undo the selected word, but typed text shouldn't be canceled",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -541,7 +541,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): undo the word, but typed text shouldn't be canceled",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -554,7 +554,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): undo the typed text",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("z", { accelKey: true }, aWindow);
return true;
},
@@ -571,7 +571,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): redo the typed text",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -587,7 +587,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): redo the default index word",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -600,7 +600,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): redo the word",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("Z", { accelKey: true, shiftKey: true }, aWindow);
return true;
},
@@ -613,7 +613,7 @@ nsDoTestsForEditorWithAutoComplete.prototype = {
description:
"Undo/Redo behavior check when typed text does not match the case (completeDefaultIndex is true): removing all text for next test...",
completeDefaultIndex: true,
- execute(aWindow, aTarget) {
+ execute(aWindow) {
synthesizeKey("a", { accelKey: true }, aWindow);
synthesizeKey("KEY_Backspace", {}, aWindow);
return true;