Bug 1329628 - [Empty] Part 5. Add plain mochitest for addition information that addressing phishing issue. draft
authorRay Lin <ralin@mozilla.com>
Tue, 23 May 2017 17:30:51 +0800
changeset 582877 9fe3bbe08ffba9d866487fcec056b3f84ed2977c
parent 582876 af9bd2cad856f007e1f917ae2588b8ab6d5ee1c6
child 629899 29dcb674e5eb27192fe67d281aa8aa6ed4912b64
push id60223
push userbmo:ralin@mozilla.com
push dateTue, 23 May 2017 09:34:08 +0000
bugs1329628
milestone55.0a1
Bug 1329628 - [Empty] Part 5. Add plain mochitest for addition information that addressing phishing issue. MozReview-Commit-ID: 2NQc1Re3nbz
browser/extensions/formautofill/test/mochitest/formautofill_parent_utils.js
browser/extensions/formautofill/test/mochitest/mochitest.ini
browser/extensions/formautofill/test/mochitest/test_formautofill_phishing.html
--- a/browser/extensions/formautofill/test/mochitest/formautofill_parent_utils.js
+++ b/browser/extensions/formautofill/test/mochitest/formautofill_parent_utils.js
@@ -27,16 +27,20 @@ var ParentUtils = {
         return;
       }
 
       Services.obs.removeObserver(observer, topic);
       sendAsyncMessage(contentMsg);
     }, "formautofill-storage-changed");
   },
 
+  getAdditionalInformationText() {
+    // TODO: extract text from the last item of popup.
+  },
+
   observe(subject, topic, data) {
     assert.ok(topic === "formautofill-storage-changed");
     sendAsyncMessage("formautofill-storage-changed", {subject: null, topic, data});
   },
 
   cleanup() {
     Services.obs.removeObserver(this, "formautofill-storage-changed");
     this.cleanUpAddress();
--- a/browser/extensions/formautofill/test/mochitest/mochitest.ini
+++ b/browser/extensions/formautofill/test/mochitest/mochitest.ini
@@ -1,9 +1,9 @@
 [DEFAULT]
 support-files =
   ../../../../../toolkit/components/satchel/test/satchel_common.js
   ../../../../../toolkit/components/satchel/test/parent_utils.js
   formautofill_common.js
   formautofill_parent_utils.js
 
 [test_basic_autocomplete_form.html]
-
+[test_formautofill_phishing.html]
new file mode 100644