Bug 433238 - Skip test_context_menu.js on Android. r=bustage a=merge
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 07 Aug 2015 14:22:55 -0700
changeset 288515 a5bde89f6829769775f74aeed8ac0de66bc36eac
parent 288514 789ccabdbadc733faaeff2647ad437b24525b043
child 288535 6a35a662414682d09bde784faeb5703efbdcdbf3
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage, merge
bugs433238
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 433238 - Skip test_context_menu.js on Android. r=bustage a=merge CLOSED TREE
toolkit/components/passwordmgr/test/unit/test_context_menu.js
toolkit/components/passwordmgr/test/unit/xpcshell.ini
--- a/toolkit/components/passwordmgr/test/unit/test_context_menu.js
+++ b/toolkit/components/passwordmgr/test/unit/test_context_menu.js
@@ -76,17 +76,17 @@ function createLoginsFragment(url, conte
   let browser = {
     ownerDocument: document
   };
 
   let URI = Services.io.newURI(url, null, null);
   return {
     document,
     fragment: LoginManagerContextMenu.addLoginsToMenu(inputElement, browser, URI),
-  }
+  };
 }
 
 /**
  * Check if every login have it's corresponding menuitem.
  * Duplicates and empty usernames have a date appended.
  */
 function checkLoginItems(logins, items) {
   function findDuplicates(loginList) {
@@ -157,9 +157,9 @@ function loginList() {
 
       new LoginInfo("http://www3.example.com", "http://www.example.com", null,
                     "", "password",
                     "form_field_username", "form_field_password"),
       new LoginInfo("http://www3.example.com", "http://www3.example.com", null,
                     "", "password2",
                     "form_field_username", "form_field_password"),
   ];
-}
\ No newline at end of file
+}
--- a/toolkit/components/passwordmgr/test/unit/xpcshell.ini
+++ b/toolkit/components/passwordmgr/test/unit/xpcshell.ini
@@ -11,16 +11,17 @@ skip-if = os == "android"
 skip-if = os == "android"
 
 # Test SQLite database backup and migration, applicable to Android only.
 [test_storage_mozStorage.js]
 skip-if = true || os != "android" # Bug 1171687: Needs fixing on Android
 
 # The following tests apply to any storage back-end.
 [test_context_menu.js]
+skip-if = os == "android" # The context menu isn't used on Android.
 [test_disabled_hosts.js]
 [test_getFormFields.js]
 [test_getPasswordFields.js]
 [test_legacy_empty_formSubmitURL.js]
 [test_legacy_validation.js]
 [test_logins_change.js]
 [test_logins_decrypt_failure.js]
 skip-if = os == "android" # Bug 1171687: Needs fixing on Android