Bug 1487783 - Create a basic directory & format for the new components of the address bar rewrite. r=mak
authorMark Banner <standard8@mozilla.com>
Sun, 02 Sep 2018 08:30:49 +0000
changeset 489554 88b606c56fedc9027c0c07f39e13ff18b71b298b
parent 489553 8284cddccf78566ca4dc45272940ccae4b1150df
child 489555 24d55d7791012c595503c2da02365a511c9cdb9b
child 489567 634b562ae2c3af1c07e12cca895796cc501f343d
push id9738
push useraciure@mozilla.com
push dateMon, 03 Sep 2018 16:13:51 +0000
treeherdermozilla-beta@f5841408a66c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1487783
milestone63.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 1487783 - Create a basic directory & format for the new components of the address bar rewrite. r=mak Differential Revision: https://phabricator.services.mozilla.com/D4772
browser/components/moz.build
browser/components/urlbar/.eslintrc.js
browser/components/urlbar/moz.build
browser/components/urlbar/tests/unit/.eslintrc.js
browser/components/urlbar/tests/unit/test_QueryContext.js
browser/components/urlbar/tests/unit/xpcshell.ini
--- a/browser/components/moz.build
+++ b/browser/components/moz.build
@@ -47,16 +47,17 @@ DIRS += [
     'preferences',
     'privatebrowsing',
     'resistfingerprinting',
     'search',
     'sessionstore',
     'shell',
     'syncedtabs',
     'uitour',
+    'urlbar',
     'translation',
 ]
 
 DIRS += ['build']
 
 if CONFIG['NIGHTLY_BUILD']:
     DIRS += ['payments']
 
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/.eslintrc.js
@@ -0,0 +1,31 @@
+"use strict";
+
+module.exports = {
+  rules: {
+    "mozilla/var-only-at-top-level": "error",
+    "require-jsdoc": ["error", {
+        "require": {
+            "FunctionDeclaration": true,
+            "MethodDefinition": true,
+            "ClassDeclaration": true,
+            "ArrowFunctionExpression": true,
+            "FunctionExpression": true
+        }
+    }],
+    "valid-jsdoc": ["error", {
+      prefer: {
+        return: "returns",
+      },
+      preferType: {
+        Boolean: "boolean",
+        Number: "number",
+        String: "string",
+        Object: "object",
+        bool: "boolean",
+      },
+      requireParamDescription: false,
+      requireReturn: false,
+      requireReturnDescription: false,
+    }],
+  }
+};
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/moz.build
@@ -0,0 +1,11 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+with Files("**"):
+    BUG_COMPONENT = ("Firefox", "Address Bar")
+
+EXTRA_JS_MODULES += [
+]
+
+XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/tests/unit/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/xpcshell-test"
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/tests/unit/test_QueryContext.js
@@ -0,0 +1,10 @@
+/* Any copyright is dedicated to the Public Domain.
+   http://creativecommons.org/publicdomain/zero/1.0/ */
+
+"use strict";
+
+// XXX Bug 1487125 will fill out this test.
+
+add_task(function test_constructor() {
+  Assert.ok(true);
+});
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/tests/unit/xpcshell.ini
@@ -0,0 +1,5 @@
+[DEFAULT]
+head =
+firefox-appdir = browser
+
+[test_QueryContext.js]