Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Mullvad Browser
Commits
9c154891
Commit
9c154891
authored
13 years ago
by
Mark Finkle
Browse files
Options
Downloads
Patches
Plain Diff
Bug 725910 - Robotium: Add simple about: page tests r=gbrown
parent
c3c33b0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mobile/android/base/tests/robocop.ini
+1
-0
1 addition, 0 deletions
mobile/android/base/tests/robocop.ini
mobile/android/base/tests/testAboutPage.java.in
+47
-0
47 additions, 0 deletions
mobile/android/base/tests/testAboutPage.java.in
with
48 additions
and
0 deletions
mobile/android/base/tests/robocop.ini
+
1
−
0
View file @
9c154891
...
...
@@ -7,6 +7,7 @@
[testFlingCorrectness]
[testOverscroll]
[testAxisLocking]
[testAboutPage]
# Used for Talos, please don't use in mochitest
#[testPan]
...
...
This diff is collapsed.
Click to expand it.
mobile/android/base/tests/testAboutPage.java.in
0 → 100644
+
47
−
0
View file @
9c154891
#filter substitution
package @ANDROID_PACKAGE_NAME@.tests;
import @ANDROID_PACKAGE_NAME@.*;
import android.app.Activity;
import android.util.Log;
public class testAboutPage extends BaseTest {
public void testAboutPage() {
setTestType("mochitest");
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent();
// Load the about: page
String url = "about:";
loadUrl(url);
Element awesomebar = mDriver.findElement(getActivity(), "awesome_bar");
mAsserter.ok(awesomebar.getText().matches("About (Fennec|Nightly|Aurora|Firefox)"), "page title match", "about: page title is correct");
// Open a new page to remove the about: page from the current tab
url = getAbsoluteUrl("/robocop/robocop_blank_01.html");
loadUrl(url);
// Use the menu to open the Settings
mActions.sendSpecialKey(Actions.SpecialKey.MENU);
// Look for the 'More' menu if this device/OS uses it
if (mSolo.waitForText("^More$")) {
mSolo.clickOnText("^More$");
}
mSolo.waitForText("^Settings$");
mSolo.clickOnText("^Settings$");
// Tap on the "About Xxxx" setting
mSolo.waitForText("About (Fennec|Nightly|Aurora|Firefox)");
mSolo.clickOnText("About (Fennec|Nightly|Aurora|Firefox)");
// Wait for the new tab and page to load
mActions.expectGeckoEvent("Tab:Added").blockForEvent();
mActions.expectGeckoEvent("DOMContentLoaded").blockForEvent();
// Grab the title to make sure the about: page was loaded
awesomebar = mDriver.findElement(getActivity(), "awesome_bar");
mAsserter.ok(awesomebar.getText().matches("About (Fennec|Nightly|Aurora|Firefox)"), "page title match", "about: page title is correct");
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment