diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
commit | 0ddd00f1959c78ce37c14fef3c83401408fca3bf (patch) | |
tree | d408e02767c86cf8aac3acbb86722b03c77ede6f /toolkit/components/passwordmgr/test/mochitest/test_basic_form_3pw_1.html | |
parent | 20f0905b33cbb18d1caa80c55e2f552c2e18957b (diff) | |
download | UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar.gz UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar.lz UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar.xz UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.zip |
Issue #439 - Remove tests from toolkit/
Diffstat (limited to 'toolkit/components/passwordmgr/test/mochitest/test_basic_form_3pw_1.html')
-rw-r--r-- | toolkit/components/passwordmgr/test/mochitest/test_basic_form_3pw_1.html | 177 |
1 files changed, 0 insertions, 177 deletions
diff --git a/toolkit/components/passwordmgr/test/mochitest/test_basic_form_3pw_1.html b/toolkit/components/passwordmgr/test/mochitest/test_basic_form_3pw_1.html deleted file mode 100644 index 30b5a319f..000000000 --- a/toolkit/components/passwordmgr/test/mochitest/test_basic_form_3pw_1.html +++ /dev/null @@ -1,177 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <meta charset="utf-8"> - <title>Test autofill for forms with 3 password fields</title> - <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> - <script type="text/javascript" src="pwmgr_common.js"></script> - <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> -</head> -<body> -Login Manager test: forms with 3 password fields (form filling) -<script> -runChecksAfterCommonInit(() => startTest()); -</script> -<p id="display"></p> - -<div id="content" style="display: none"> - <p>The next three forms are <b>user/pass/passB/passC</b>, as all-empty, preuser(only), and preuser/pass</p> - <form id="form1" action="formtest.js"> - <input type="text" name="uname"> - <input type="password" name="pword"> - <input type="password" name="qword"> - <input type="password" name="rword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <form id="form2" action="formtest.js"> - <input type="text" name="uname" value="testuser"> - <input type="password" name="pword"> - <input type="password" name="qword"> - <input type="password" name="rword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <form id="form3" action="formtest.js"> - <input type="text" name="uname" value="testuser"> - <input type="password" name="pword" value="testpass"> - <input type="password" name="qword"> - <input type="password" name="rword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - - <p>The next three forms are <b>user/passB/pass/passC</b>, as all-empty, preuser(only), and preuser/pass</p> - <form id="form4" action="formtest.js"> - <input type="text" name="uname"> - <input type="password" name="qword"> - <input type="password" name="pword"> - <input type="password" name="rword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <form id="form5" action="formtest.js"> - <input type="text" name="uname" value="testuser"> - <input type="password" name="qword"> - <input type="password" name="pword"> - <input type="password" name="rword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <form id="form6" action="formtest.js"> - <input type="text" name="uname" value="testuser"> - <input type="password" name="qword"> - <input type="password" name="pword" value="testpass"> - <input type="password" name="rword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <p>The next three forms are <b>user/passB/passC/pass</b>, as all-empty, preuser(only), and preuser/pass</p> - <form id="form7" action="formtest.js"> - <input type="text" name="uname"> - <input type="password" name="qword"> - <input type="password" name="rword"> - <input type="password" name="pword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <form id="form8" action="formtest.js"> - <input type="text" name="uname" value="testuser"> - <input type="password" name="qword"> - <input type="password" name="rword"> - <input type="password" name="pword"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> - - <form id="form9" action="formtest.js"> - <input type="text" name="uname" value="testuser"> - <input type="password" name="qword"> - <input type="password" name="rword"> - <input type="password" name="pword" value="testpass"> - - <button type="submit">Submit</button> - <button type="reset"> Reset </button> - </form> -</div> - -<pre id="test"> -<script class="testbody" type="text/javascript"> - -/** Test for Login Manager: form fill, 3 password fields **/ - -// Test to make sure 3-password forms are filled properly. - -function startTest() { - // Check form 1 - is($_(1, "uname").value, "testuser", "Checking username 1"); - is($_(1, "pword").value, "testpass", "Checking password 1"); - is($_(1, "qword").value, "", "Checking password 1 (q)"); - is($_(1, "rword").value, "", "Checking password 1 (r)"); - // Check form 2 - is($_(2, "uname").value, "testuser", "Checking username 2"); - is($_(2, "pword").value, "testpass", "Checking password 2"); - is($_(2, "qword").value, "", "Checking password 2 (q)"); - is($_(2, "rword").value, "", "Checking password 2 (r)"); - // Check form 3 - is($_(3, "uname").value, "testuser", "Checking username 3"); - is($_(3, "pword").value, "testpass", "Checking password 3"); - is($_(3, "qword").value, "", "Checking password 3 (q)"); - is($_(3, "rword").value, "", "Checking password 3 (r)"); - - // Check form 4 - is($_(4, "uname").value, "testuser", "Checking username 4"); - todo_is($_(4, "qword").value, "", "Checking password 4 (q)"); - todo_is($_(4, "pword").value, "testpass", "Checking password 4"); - is($_(4, "rword").value, "", "Checking password 4 (r)"); - // Check form 5 - is($_(5, "uname").value, "testuser", "Checking username 5"); - todo_is($_(5, "qword").value, "", "Checking password 5 (q)"); - todo_is($_(5, "pword").value, "testpass", "Checking password 5"); - is($_(5, "rword").value, "", "Checking password 5 (r)"); - // Check form 6 - is($_(6, "uname").value, "testuser", "Checking username 6"); - todo_is($_(6, "qword").value, "", "Checking password 6 (q)"); - is($_(6, "pword").value, "testpass", "Checking password 6"); - is($_(6, "rword").value, "", "Checking password 6 (r)"); - - // Check form 7 - is($_(7, "uname").value, "testuser", "Checking username 7"); - todo_is($_(7, "qword").value, "", "Checking password 7 (q)"); - is($_(7, "rword").value, "", "Checking password 7 (r)"); - todo_is($_(7, "pword").value, "testpass", "Checking password 7"); - // Check form 8 - is($_(8, "uname").value, "testuser", "Checking username 8"); - todo_is($_(8, "qword").value, "", "Checking password 8 (q)"); - is($_(8, "rword").value, "", "Checking password 8 (r)"); - todo_is($_(8, "pword").value, "testpass", "Checking password 8"); - // Check form 9 - is($_(9, "uname").value, "testuser", "Checking username 9"); - todo_is($_(9, "qword").value, "", "Checking password 9 (q)"); - is($_(9, "rword").value, "", "Checking password 9 (r)"); - is($_(9, "pword").value, "testpass", "Checking password 9"); - - // TODO: as with the 2-password cases, add tests to check for creating new - // logins and changing passwords. - SimpleTest.finish(); -} -</script> -</pre> -</body> -</html> - |