Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Bug 1054303 - Use open search plugins for search engines #65

Merged
merged 1 commit into from Aug 25, 2014

Conversation

leibovic
Copy link
Collaborator

Still a WIP, but I wanted to open a pull request to share my progress.


public void testResultsUri() {
final String expected = "http://www.google.com/search?q=query&ie=utf-8&oe=utf-8&aq=t";
assertEquals(expected, engine.resultsUriForQuery("query"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If url params change order, this could create a false negative. I think the .equals method of Uri could help to insulate from param order:

http://developer.android.com/reference/android/net/Uri.html#equals%28java.lang.Object%29

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I realized these tests were pretty fragile, but at least they would be fragile in the false-positive failure direction ;)

@leibovic leibovic force-pushed the opensearch branch 5 times, most recently from 53708de to 1613ca4 Compare August 25, 2014 20:47
leibovic added a commit that referenced this pull request Aug 25, 2014
Bug 1054303 - Use open search plugins for search engines. r=bnicholson
@leibovic leibovic merged commit 939122c into mozilla:master Aug 25, 2014

public class SearchEngineManager implements SharedPreferences.OnSharedPreferenceChangeListener {
private static final String LOG_TAG = "SearchEngineManager";
private final static String LOG_TAG = "SearchEngineManager";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Unnecessary change

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I must have done that in different iterations that removed/added this line.

@leibovic leibovic deleted the opensearch branch September 2, 2014 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants