add mock data to result draft
authorRay Lin <ralin@mozilla.com>
Mon, 20 Feb 2017 14:38:58 +0800
changeset 495131 cb65f94ce82ed3038dd85e1041156583298eb454
parent 495130 d2755cc94fbfd008d21504de2ca876a33b4b228f
child 495132 45f771d4928d1d509e2d93e361b7e04921bd0fab
push id48247
push userbmo:ralin@mozilla.com
push dateWed, 08 Mar 2017 10:18:27 +0000
milestone55.0a1
add mock data to result MozReview-Commit-ID: HtrsgGDytwh
browser/extensions/formautofill/ProfileStorage.jsm
--- a/browser/extensions/formautofill/ProfileStorage.jsm
+++ b/browser/extensions/formautofill/ProfileStorage.jsm
@@ -69,29 +69,35 @@ const VALID_FIELDS = [
   "address-level1",
   "postal-code",
   "country",
   "tel",
   "email",
 ];
 
 // TODO: Remove this once we can add profile from preference.
-const MOCK_MODE = false;
+const MOCK_MODE = true;
 const MOCK_STORAGE = [{
-  guid: "test-guid-1",
-  organization: "Sesame Street",
-  "street-address": "123 Sesame Street.",
-  tel: "1-345-345-3456",
+  organization: "World Wide Web Consortium",
+  "street-address": "32 Vassar Street\nMIT Room 32-G524",
+  "address-level2": "Cambridge",
+  "address-level1": "MA",
+  "postal-code": "02139",
+  country: "US",
+  tel: "+1 617 253 5702",
+  email: "timbl@w3.org",
 }, {
-  guid: "test-guid-2",
-  organization: "Mozilla",
-  "street-address": "331 E. Evelyn Avenue",
-  tel: "1-650-903-0800",
+  "street-address": "Some Address",
+  country: "US",
+}, {
+  "street-address": "Other Address",
+  "postal-code": "12345",
 }];
 
+
 function ProfileStorage(path) {
   this._path = path;
 }
 
 ProfileStorage.prototype = {
   /**
    * Loads the profile data from file to memory.
    *