Closed Bug 722961 Opened 12 years ago Closed 12 years ago

Make some tests for autocomplete with IME

Categories

(Toolkit :: Autocomplete, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

(Keywords: inputmethod)

Attachments

(1 file, 1 obsolete file)

Like other IME tests, we should test the autocomplete behavior when user is using IME. Then, we can remove the tests for autocomplete of bug 717147.
Oh, toolkit/content/tests/chrome/test_autocomplete_with_composition.xul might be better path.
Summary: Make some tests for autocomplete with IME in widget/tests → Make some tests for autocomplete with IME
Attached patch Patch (obsolete) — Splinter Review
This tests both nsIAutoCompleteInput implementation, XUL <textbox type="autocomplete"> and nsFormFillController. Actual testing is in file_autocomplete_with_composition.js. test_autocomplete_with_composition_on_textbox.xul and test_autocomplete_with_composition_on_input.html use it.

This tests can be passed with the patch in bug 720659.
Attachment #593789 - Flags: review?(gavin.sharp)
The new tests can be passed without the fix of bug 720659.

I should add more tests but anyway the tests are useful for other cases.
Comment on attachment 593789 [details] [diff] [review]
Patch

I'm going to attach new patch which has more tests.
Attachment #593789 - Flags: review?(gavin.sharp)
Attached patch PatchSplinter Review
Attachment #593789 - Attachment is obsolete: true
Attachment #603228 - Flags: review?(gavin.sharp)
gavin: ping
Is there anyone more familiar with IME available to review this? I'm not sure that I can usefully review it.
(In reply to Gavin Sharp (use gavin@gavinsharp.com for email) from comment #7)
> Is there anyone more familiar with IME available to review this? I'm not
> sure that I can usefully review it.

For the IME behavior, Kato-san may be one of good reviewers. However, I'm not sure he is familiar with autocomplete.
Comment on attachment 603228 [details] [diff] [review]
Patch

I think he is likely to be a better reviewer than I am.

Kato-san, if you cannot review this you can re-direct it back to me.
Attachment #603228 - Flags: review?(gavin.sharp) → review?(m_kato)
Comment on attachment 603228 [details] [diff] [review]
Patch

Review of attachment 603228 [details] [diff] [review]:
-----------------------------------------------------------------

good

::: toolkit/content/tests/chrome/test_autocomplete_with_composition_on_input.html
@@ +4,5 @@
> +  <title>autocomplete with composition tests on HTML input element</title>
> +  <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
> +  <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
> +  <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/ChromeUtils.js"></script>
> +  <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/ChromeUtils.js"></script>

twice ChromeUtils.js?
Attachment #603228 - Flags: review?(m_kato) → review+
https://hg.mozilla.org/mozilla-central/rev/e4aaab8a2af6
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Depends on: 820360
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: