Bug 1518552 - Follow-up: Fix linting errors. rs=bustage-fix DONTBUILD
authorJorg K <jorgk@jorgk.com>
Tue, 08 Jan 2019 21:02:38 +0100
changeset 33288 715f97e4c9ae
parent 33287 53e0e1023adc
child 33289 42f55e4d3ba3
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1518552
Bug 1518552 - Follow-up: Fix linting errors. rs=bustage-fix DONTBUILD
common/saxparser/test/unit/.eslintrc.js
common/saxparser/test/unit/test_parser.js
--- a/common/saxparser/test/unit/.eslintrc.js
+++ b/common/saxparser/test/unit/.eslintrc.js
@@ -1,7 +1,7 @@
 "use strict";
 
 module.exports = {
   "extends": [
     "plugin:mozilla/xpcshell-test",
-  ]
+  ],
 };
--- a/common/saxparser/test/unit/test_parser.js
+++ b/common/saxparser/test/unit/test_parser.js
@@ -16,61 +16,61 @@ function updateDocumentSourceMaps(src) {
    * to record errors and handle them after the parsing is finished.
    */
   function do_parse_check(aCondition, aMsg) {
     if (!aCondition)
       parseErrorLog[parseErrorLog.length] = aMsg;
   }
 
   var contentHandler = {
-    startDocument: function startDocument() {
+    startDocument() {
     },
 
-    endDocument: function endDocument() {
+    endDocument() {
     },
 
-    handleAttributes: function handleAttributes(aAttributes) {
+    handleAttributes(aAttributes) {
       for (var i = 0; i < aAttributes.length; i++) {
         var attrLocalName = aAttributes.getLocalName(i);
         var attrNodeName = aAttributes.getQName(i);
         do_parse_check(attrLocalName, "Missing attribute local name");
         do_parse_check(attrNodeName, "Missing attribute node name");
       }
     },
 
-    startElement: function startElement(aNamespaceURI, aLocalName, aNodeName, aAttributes) {
+    startElement(aNamespaceURI, aLocalName, aNodeName, aAttributes) {
       do_parse_check(aLocalName, "Missing element local name (startElement)");
       do_parse_check(aNodeName, "Missing element node name (startElement)");
       do_parse_check(aAttributes, "Missing element attributes");
       this.handleAttributes(aAttributes);
     },
 
-    endElement: function endElement(aNamespaceURI, aLocalName, aNodeName) {
+    endElement(aNamespaceURI, aLocalName, aNodeName) {
       do_parse_check(aLocalName, "Missing element local name (endElement)");
       do_parse_check(aNodeName, "Missing element node name (endElement)");
     },
 
-    characters: function characters(aData) {
+    characters(aData) {
     },
 
-    processingInstruction: function processingInstruction(aTarget, aData) {
+    processingInstruction(aTarget, aData) {
       do_parse_check(aTarget, "Missing processing instruction target");
     },
   };
 
   var errorHandler = {
-    error: function error(aError) {
+    error(aError) {
       do_parse_check(!aError, "XML error");
     },
 
-    fatalError: function fatalError(aError) {
+    fatalError(aError) {
       do_parse_check(!aError, "XML fatal error");
     },
 
-    ignorableWarning: function ignorableWarning(aError) {
+    ignorableWarning(aError) {
       do_parse_check(!aError, "XML ignorable warning");
     },
   };
 
   saxReader.contentHandler = contentHandler;
   saxReader.errorHandler   = errorHandler;
 
   let type = "application/xml";