From 0f62c630960f36153d1fbeab21d25ebfbee59129 Mon Sep 17 00:00:00 2001 From: Matthew Noorenberghe Date: Mon, 2 May 2016 17:33:09 -0700 Subject: [PATCH] Bug 1269039 - Use add_task in test_master_password.html. r=dolske MozReview-Commit-ID: Bx1zVTyynN3 --HG-- rename : toolkit/components/passwordmgr/test/subtst_master_pass.html => toolkit/components/passwordmgr/test/mochitest/subtst_master_pass.html rename : toolkit/components/passwordmgr/test/test_master_password.html => toolkit/components/passwordmgr/test/mochitest/test_master_password.html extra : rebase_source : d3e243678f8c0684f2f103020ea7e0ef7d8f6819 --- .../components/passwordmgr/test/mochitest.ini | 4 - .../passwordmgr/test/mochitest/mochitest.ini | 4 + .../{ => mochitest}/subtst_master_pass.html | 0 .../{ => mochitest}/test_master_password.html | 284 ++++++++---------- .../components/prompts/test/chromeScript.js | 2 + 5 files changed, 134 insertions(+), 160 deletions(-) rename toolkit/components/passwordmgr/test/{ => mochitest}/subtst_master_pass.html (100%) rename toolkit/components/passwordmgr/test/{ => mochitest}/test_master_password.html (53%) diff --git a/toolkit/components/passwordmgr/test/mochitest.ini b/toolkit/components/passwordmgr/test/mochitest.ini index bb5cb9481912..bdc09a1dbfb7 100644 --- a/toolkit/components/passwordmgr/test/mochitest.ini +++ b/toolkit/components/passwordmgr/test/mochitest.ini @@ -4,14 +4,10 @@ support-files = authenticate.sjs blank.html formsubmit.sjs - notification_common.js prompt_common.js pwmgr_common.js - subtst_master_pass.html subtst_prompt_async.html -[test_master_password.html] -skip-if = toolkit == 'android' # Tests desktop prompts [test_prompt_async.html] skip-if = toolkit == 'android' # Tests desktop prompts [test_xhr.html] diff --git a/toolkit/components/passwordmgr/test/mochitest/mochitest.ini b/toolkit/components/passwordmgr/test/mochitest/mochitest.ini index feb1b1b3e130..326fd32b5701 100644 --- a/toolkit/components/passwordmgr/test/mochitest/mochitest.ini +++ b/toolkit/components/passwordmgr/test/mochitest/mochitest.ini @@ -37,6 +37,10 @@ skip-if = toolkit == 'android' # Bug 1259768 skip-if = toolkit == 'android' # Bug 1259768 [test_input_events.html] [test_input_events_for_identical_values.html] +[test_master_password.html] +skip-if = toolkit == 'android' || e10s # Tests desktop prompts +support-files = + subtst_master_pass.html [test_maxlength.html] [test_passwords_in_type_password.html] [test_prompt.html] diff --git a/toolkit/components/passwordmgr/test/subtst_master_pass.html b/toolkit/components/passwordmgr/test/mochitest/subtst_master_pass.html similarity index 100% rename from toolkit/components/passwordmgr/test/subtst_master_pass.html rename to toolkit/components/passwordmgr/test/mochitest/subtst_master_pass.html diff --git a/toolkit/components/passwordmgr/test/test_master_password.html b/toolkit/components/passwordmgr/test/mochitest/test_master_password.html similarity index 53% rename from toolkit/components/passwordmgr/test/test_master_password.html rename to toolkit/components/passwordmgr/test/mochitest/test_master_password.html index 95cc689dd60f..eca27bf95230 100644 --- a/toolkit/components/passwordmgr/test/test_master_password.html +++ b/toolkit/components/passwordmgr/test/mochitest/test_master_password.html @@ -4,6 +4,7 @@ Test for master password + @@ -13,8 +14,10 @@ Login Manager test: master password. - diff --git a/toolkit/components/prompts/test/chromeScript.js b/toolkit/components/prompts/test/chromeScript.js index 29866acbdb8d..1f2e8b97ca73 100644 --- a/toolkit/components/prompts/test/chromeScript.js +++ b/toolkit/components/prompts/test/chromeScript.js @@ -191,6 +191,8 @@ function dismissPrompt(ui, action) { clearInterval(interval); }, 100); break; + case "none": + break; default: throw "dismissPrompt action listed unknown button.";