From cfca41b8aef9ea938acd1d9265fd789ddb5cb8b9 Mon Sep 17 00:00:00 2001 From: Romain Deltour Date: Sun, 24 Feb 2019 02:24:35 +0100 Subject: [PATCH] feat: update Jing (schema processor) to v20181222 --- pom.xml | 4 +- .../epubcheck/ctc/xml/ScriptTagHandler.java | 2 +- .../com/adobe/epubcheck/xml/XMLValidator.java | 14 -- .../opf/Epub3_marked_v2_expected_results.json | 214 +++++++++--------- .../Media-type_handler_expected_results.json | 8 +- .../XMLHttpRequest_expected_results.json | 10 +- .../test/scripts/epub2_expected_results.json | 160 ++++++------- .../test/scripts/epub2_expected_results.xmp | 14 +- .../test/scripts/eval_expected_results.json | 18 +- .../scripts/properties_expected_results.json | 6 +- .../scripts/storage_expected_results.json | 26 +-- .../test/scripts/unused_expected_results.json | 6 +- 12 files changed, 234 insertions(+), 248 deletions(-) diff --git a/pom.xml b/pom.xml index 13b9d8120..03d933cb8 100644 --- a/pom.xml +++ b/pom.xml @@ -180,9 +180,9 @@ - org.daisy.libs + org.relaxng jing - 20120724.0.0 + 20181222 xml-apis diff --git a/src/main/java/com/adobe/epubcheck/ctc/xml/ScriptTagHandler.java b/src/main/java/com/adobe/epubcheck/ctc/xml/ScriptTagHandler.java index 3ded3b30f..6d4b385cc 100644 --- a/src/main/java/com/adobe/epubcheck/ctc/xml/ScriptTagHandler.java +++ b/src/main/java/com/adobe/epubcheck/ctc/xml/ScriptTagHandler.java @@ -118,7 +118,7 @@ public void startElement(String uri, String localName, String qName, for (int i = 0; i < attributes.getLength(); i++) { - String attrName = attributes.getLocalName(i).toLowerCase(Locale.ROOT); + String attrName = attributes.getQName(i).toLowerCase(Locale.ROOT); if (scriptEvents.contains(attrName)) { this.inlineScriptCount++; diff --git a/src/main/java/com/adobe/epubcheck/xml/XMLValidator.java b/src/main/java/com/adobe/epubcheck/xml/XMLValidator.java index 1647bf858..464c6a21e 100755 --- a/src/main/java/com/adobe/epubcheck/xml/XMLValidator.java +++ b/src/main/java/com/adobe/epubcheck/xml/XMLValidator.java @@ -196,20 +196,6 @@ public void initTransformerFactory(TransformerFactory factory) { configuration.registerExtensionFunction(new SystemIdFunction()); } - // Used to silence Saxon's warning about an XPath expression in Jing's built-in Schematron XSLT - // See issue #859 - factory.setAttribute(FeatureKeys.XSLT_STATIC_ERROR_LISTENER_CLASS, SilencingErrorListener.class.getName()); - } - } - } - - public static class SilencingErrorListener extends StandardErrorListener { - - @Override - public void warning(TransformerException exception) { - XPathException xe = XPathException.makeXPathException(exception); - if (!"SXWN9000".equals(xe.getErrorCodeLocalPart())) { - super.warning(exception); } } } diff --git a/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.json index 0108fbd19..a4c736d41 100644 --- a/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.json @@ -1,11 +1,113 @@ { + "messages" : [ { + "ID" : "HTM-004", + "severity" : "ERROR", + "message" : "Irregular DOCTYPE: found '', expected ''.", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/toc.xhtml", + "line" : -1, + "column" : -1, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "HTM-010", + "severity" : "USAGE", + "message" : "Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/toc.ncx", + "line" : 2, + "column" : 68, + "context" : "" + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: attribute \"properties\" not allowed here; expected attribute \"fallback\", \"fallback-style\", \"href\", \"media-type\", \"required-modules\" or \"required-namespace\"", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/content.opf", + "line" : 12, + "column" : 90, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: attribute \"property\" not allowed here; expected attribute \"content\", \"id\", \"name\", \"scheme\" or \"xml:lang\"", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/content.opf", + "line" : 7, + "column" : 39, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: element \"body\" incomplete; expected element \"address\", \"blockquote\", \"del\", \"div\", \"dl\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"ins\", \"noscript\", \"ns:svg\", \"ol\", \"p\", \"pre\", \"script\", \"table\" or \"ul\" (with xmlns:ns=\"http://www.w3.org/2000/svg\")", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/toc.xhtml", + "line" : 14, + "column" : 8, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: element \"meta\" missing required attributes \"content\" and \"name\"", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/content.opf", + "line" : 7, + "column" : 39, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: element \"nav\" not allowed anywhere; expected element \"address\", \"blockquote\", \"del\", \"div\", \"dl\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"ins\", \"noscript\", \"ns:svg\", \"ol\", \"p\", \"pre\", \"script\", \"table\" or \"ul\" (with xmlns:ns=\"http://www.w3.org/2000/svg\")", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/toc.xhtml", + "line" : 9, + "column" : 22, + "context" : null + }, { + "path" : "OPS/toc.xhtml", + "line" : 12, + "column" : 10, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: text not allowed here; expected the element end-tag", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/content.opf", + "line" : 7, + "column" : 59, + "context" : null + } ], + "suggestion" : null + } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/opf/Epub3_marked_v2.epub", + "path" : "./test-classes/com/adobe/epubcheck/test/opf/Epub3_marked_v2.epub", "filename" : "Epub3_marked_v2.epub", - "checkerVersion" : "4.0.0-alpha11-SNAPSHOT", - "checkDate" : "09-05-2014 03:15:42", - "elapsedTime" : 57, + "checkerVersion" : "4.2.0-beta-SNAPSHOT", + "checkDate" : "02-24-2019 01:28:40", + "elapsedTime" : 35, "nFatal" : 0, "nError" : 7, "nWarning" : 0, @@ -171,107 +273,5 @@ "renditionOrientation" : null, "renditionSpread" : null, "referencedItems" : [ "OPS/page01.xhtml" ] - } ], - "messages" : [ { - "ID" : "HTM-004", - "severity" : "ERROR", - "message" : "Irregular DOCTYPE: found '', expected ''.", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/toc.xhtml", - "line" : -1, - "column" : -1, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "HTM-010", - "severity" : "USAGE", - "message" : "Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/toc.ncx", - "line" : 2, - "column" : 68, - "context" : "" - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: attribute \"properties\" not allowed here; expected attribute \"fallback\", \"fallback-style\", \"href\", \"media-type\", \"required-modules\" or \"required-namespace\"", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/content.opf", - "line" : 12, - "column" : 90, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: attribute \"property\" not allowed here; expected attribute \"content\", \"id\", \"name\", \"scheme\" or \"xml:lang\"", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/content.opf", - "line" : 7, - "column" : 39, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: element \"body\" incomplete; expected element \"address\", \"blockquote\", \"del\", \"div\", \"dl\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"ins\", \"noscript\", \"ns:svg\", \"ol\", \"p\", \"pre\", \"script\", \"table\" or \"ul\" (with xmlns:ns=\"http://www.w3.org/2000/svg\")", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/toc.xhtml", - "line" : 14, - "column" : 8, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: element \"meta\" missing required attributes \"content\" and \"name\"", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/content.opf", - "line" : 7, - "column" : 39, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: element \"nav\" not allowed anywhere; expected element \"address\", \"blockquote\", \"del\", \"div\", \"dl\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"ins\", \"noscript\", \"ns:svg\", \"ol\", \"p\", \"pre\", \"script\", \"table\" or \"ul\" (with xmlns:ns=\"http://www.w3.org/2000/svg\")", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/toc.xhtml", - "line" : 9, - "column" : 22, - "context" : null - }, { - "path" : "OPS/toc.xhtml", - "line" : 12, - "column" : 10, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: text not allowed here; expected the element end-tag", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/content.opf", - "line" : 7, - "column" : 61, - "context" : null - } ], - "suggestion" : null } ] -} +} \ No newline at end of file diff --git a/src/test/resources/com/adobe/epubcheck/test/opf/Media-type_handler_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/opf/Media-type_handler_expected_results.json index 4d7d21426..c6a0a17d0 100644 --- a/src/test/resources/com/adobe/epubcheck/test/opf/Media-type_handler_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/opf/Media-type_handler_expected_results.json @@ -102,8 +102,8 @@ "additionalLocations" : 0, "locations" : [ { "path" : "OPS/impl.xhtml", - "line" : 52, - "column" : 12, + "line" : 39, + "column" : 48, "context" : "new XMLHttpRequest();" } ], "suggestion" : null @@ -130,8 +130,8 @@ "path" : "./test-classes/com/adobe/epubcheck/test/opf/Media-type_handler.epub", "filename" : "Media-type_handler.epub", "checkerVersion" : "4.2.0-beta-SNAPSHOT", - "checkDate" : "02-05-2019 22:24:45", - "elapsedTime" : 368, + "checkDate" : "02-24-2019 01:28:43", + "elapsedTime" : 122, "nFatal" : 0, "nError" : 5, "nWarning" : 1, diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/XMLHttpRequest_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/scripts/XMLHttpRequest_expected_results.json index 43290e4a0..467079200 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/XMLHttpRequest_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/XMLHttpRequest_expected_results.json @@ -88,8 +88,8 @@ "additionalLocations" : 0, "locations" : [ { "path" : "OPS/script_tag.xhtml", - "line" : 9, - "column" : 24, + "line" : 8, + "column" : 70, "context" : "innerHTML = \"\";" } ], "suggestion" : "Use a DOM instead." @@ -147,11 +147,11 @@ } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/scripts/XMLHttpRequest.epub", + "path" : "./target/test-classes/com/adobe/epubcheck/test/scripts/XMLHttpRequest.epub", "filename" : "XMLHttpRequest.epub", "checkerVersion" : "4.2.0-beta-SNAPSHOT", - "checkDate" : "02-05-2019 15:38:31", - "elapsedTime" : 45, + "checkDate" : "02-24-2019 02:17:07", + "elapsedTime" : 104, "nFatal" : 0, "nError" : 0, "nWarning" : 0, diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.json index 31d6d4405..92cbe7bde 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.json @@ -1,11 +1,87 @@ { + "messages" : [ { + "ID" : "HTM-010", + "severity" : "USAGE", + "message" : "Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/toc.ncx", + "line" : 2, + "column" : 68, + "context" : "" + } ], + "suggestion" : null + }, { + "ID" : "RSC-005", + "severity" : "ERROR", + "message" : "Error while parsing file: attribute \"onmousedown\" not allowed here; expected attribute \"class\", \"dir\", \"id\", \"lang\", \"style\", \"title\" or \"xml:lang\"", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/inline_script.xhtml", + "line" : 10, + "column" : 39, + "context" : null + } ], + "suggestion" : null + }, { + "ID" : "SCP-004", + "severity" : "ERROR", + "message" : "Content file contains script which is not supported in EPUB v2.", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/external_script.xhtml", + "line" : 5, + "column" : 52, + "context" : "script" + }, { + "path" : "OPS/inline_script.xhtml", + "line" : 10, + "column" : 39, + "context" : "onmousedown" + }, { + "path" : "OPS/sample.js", + "line" : -1, + "column" : -1, + "context" : null + }, { + "path" : "OPS/script_tag.xhtml", + "line" : 5, + "column" : 36, + "context" : "script" + } ], + "suggestion" : null + }, { + "ID" : "SCP-006", + "severity" : "USAGE", + "message" : "Inline scripts found.", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/inline_script.xhtml", + "line" : 10, + "column" : 39, + "context" : "onmousedown" + } ], + "suggestion" : null + }, { + "ID" : "SCP-009", + "severity" : "USAGE", + "message" : "Content file uses mouse event handlers.", + "additionalLocations" : 0, + "locations" : [ { + "path" : "OPS/inline_script.xhtml", + "line" : 10, + "column" : 39, + "context" : "onmousedown" + } ], + "suggestion" : "Ensure that all mouse driven functionality is accessible from the keyboard and touch devices." + } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/scripts/epub2.epub", + "path" : "./target/test-classes/com/adobe/epubcheck/test/scripts/epub2.epub", "filename" : "epub2.epub", - "checkerVersion" : "4.0.3-SNAPSHOT", - "checkDate" : "11-27-2017 20:49:01", - "elapsedTime" : 59, + "checkerVersion" : "4.2.0-beta-SNAPSHOT", + "checkDate" : "02-24-2019 02:17:07", + "elapsedTime" : 72, "nFatal" : 0, "nError" : 2, "nWarning" : 0, @@ -215,81 +291,5 @@ "renditionOrientation" : null, "renditionSpread" : null, "referencedItems" : [ ] - } ], - "messages" : [ { - "ID" : "HTM-010", - "severity" : "USAGE", - "message" : "Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/toc.ncx", - "line" : 2, - "column" : 68, - "context" : "" - } ], - "suggestion" : null - }, { - "ID" : "RSC-005", - "severity" : "ERROR", - "message" : "Error while parsing file: attribute \"onmousedown\" not allowed here; expected attribute \"class\", \"dir\", \"id\", \"lang\", \"style\", \"title\" or \"xml:lang\"", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/inline_script.xhtml", - "line" : 10, - "column" : 39, - "context" : null - } ], - "suggestion" : null - }, { - "ID" : "SCP-004", - "severity" : "ERROR", - "message" : "Content file contains script which is not supported in EPUB v2.", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/external_script.xhtml", - "line" : 5, - "column" : 52, - "context" : "script" - }, { - "path" : "OPS/inline_script.xhtml", - "line" : 10, - "column" : 39, - "context" : "onmousedown" - }, { - "path" : "OPS/sample.js", - "line" : -1, - "column" : -1, - "context" : null - }, { - "path" : "OPS/script_tag.xhtml", - "line" : 5, - "column" : 36, - "context" : "script" - } ], - "suggestion" : null - }, { - "ID" : "SCP-006", - "severity" : "USAGE", - "message" : "Inline scripts found.", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/inline_script.xhtml", - "line" : 10, - "column" : 39, - "context" : "onmousedown" - } ], - "suggestion" : null - }, { - "ID" : "SCP-009", - "severity" : "USAGE", - "message" : "Content file uses mouse event handlers.", - "additionalLocations" : 0, - "locations" : [ { - "path" : "OPS/inline_script.xhtml", - "line" : 10, - "column" : 39, - "context" : "onmousedown" - } ], - "suggestion" : "Ensure that all mouse driven functionality is accessible from the keyboard and touch devices." } ] } \ No newline at end of file diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.xmp b/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.xmp index d7f68fd64..4ce96c33b 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.xmp +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/epub2_expected_results.xmp @@ -1,25 +1,25 @@ - + xmp:CreateDate="2019-02-24T01:48:22Z"> Script in epub 2 Sample Book - 2017-11-27T20:49:01+01:00 + 2019-02-24T02:17:08+01:00 Not well-formed @@ -71,7 +71,7 @@ - epubcheck 4.0.3-SNAPSHOT + epubcheck 4.2.0-beta-SNAPSHOT diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/eval_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/scripts/eval_expected_results.json index 22693a853..03ba89280 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/eval_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/eval_expected_results.json @@ -89,18 +89,18 @@ "context" : "eval (str);" }, { "path" : "OPS/script_tag.xhtml", - "line" : 11, - "column" : 52, + "line" : 10, + "column" : 74, "context" : "eval(\"x=10;y=20;document.body.insertAdjacentHTML('beforeend'" }, { "path" : "OPS/script_tag.xhtml", - "line" : 12, - "column" : 52, + "line" : 11, + "column" : 80, "context" : "eval(\"2+2\"));" }, { "path" : "OPS/script_tag.xhtml", - "line" : 14, - "column" : 1, + "line" : 12, + "column" : 81, "context" : "eval(x + 17));" } ], "suggestion" : null @@ -158,11 +158,11 @@ } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/scripts/eval.epub", + "path" : "./target/test-classes/com/adobe/epubcheck/test/scripts/eval.epub", "filename" : "eval.epub", "checkerVersion" : "4.2.0-beta-SNAPSHOT", - "checkDate" : "02-05-2019 15:38:31", - "elapsedTime" : 39, + "checkDate" : "02-24-2019 02:17:07", + "elapsedTime" : 126, "nFatal" : 0, "nError" : 0, "nWarning" : 0, diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/properties_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/scripts/properties_expected_results.json index df7daa034..caf7c5594 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/properties_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/properties_expected_results.json @@ -219,11 +219,11 @@ } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/scripts/properties.epub", + "path" : "./target/test-classes/com/adobe/epubcheck/test/scripts/properties.epub", "filename" : "properties.epub", "checkerVersion" : "4.2.0-beta-SNAPSHOT", - "checkDate" : "02-05-2019 15:38:31", - "elapsedTime" : 61, + "checkDate" : "02-24-2019 02:17:01", + "elapsedTime" : 5782, "nFatal" : 0, "nError" : 3, "nWarning" : 0, diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/storage_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/scripts/storage_expected_results.json index 1de1f9b2d..b7080153f 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/storage_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/storage_expected_results.json @@ -77,8 +77,8 @@ "context" : "sessionStorage.firstName;" }, { "path" : "OPS/script_tag.xhtml", - "line" : 13, - "column" : 47, + "line" : 12, + "column" : 39, "context" : "localStorage.lastname=\"Smith\";" }, { "path" : "OPS/script_tag.xhtml", @@ -87,13 +87,13 @@ "context" : "sessionStorage.firstName=\"Sarah Jane\";" }, { "path" : "OPS/script_tag.xhtml", - "line" : 15, - "column" : 6, + "line" : 14, + "column" : 120, "context" : "localStorage.lastname + \", \" + sessionStorage.firstName;" }, { "path" : "OPS/script_tag.xhtml", - "line" : 15, - "column" : 6, + "line" : 14, + "column" : 120, "context" : "sessionStorage.firstName;" } ], "suggestion" : null @@ -126,13 +126,13 @@ "context" : "innerHTML=\"Sorry, your browser does not support web storage." }, { "path" : "OPS/script_tag.xhtml", - "line" : 15, - "column" : 6, + "line" : 14, + "column" : 120, "context" : "innerHTML=\"Name: \" + localStorage.lastname + \", \" + sessionS" }, { "path" : "OPS/script_tag.xhtml", - "line" : 19, - "column" : 6, + "line" : 18, + "column" : 107, "context" : "innerHTML=\"Sorry, your browser does not support web storage." } ], "suggestion" : "Use a DOM instead." @@ -183,11 +183,11 @@ } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/scripts/storage.epub", + "path" : "./target/test-classes/com/adobe/epubcheck/test/scripts/storage.epub", "filename" : "storage.epub", "checkerVersion" : "4.2.0-beta-SNAPSHOT", - "checkDate" : "02-05-2019 15:38:31", - "elapsedTime" : 42, + "checkDate" : "02-24-2019 02:17:07", + "elapsedTime" : 95, "nFatal" : 0, "nError" : 0, "nWarning" : 0, diff --git a/src/test/resources/com/adobe/epubcheck/test/scripts/unused_expected_results.json b/src/test/resources/com/adobe/epubcheck/test/scripts/unused_expected_results.json index 101ef3cde..6b05ccb2b 100644 --- a/src/test/resources/com/adobe/epubcheck/test/scripts/unused_expected_results.json +++ b/src/test/resources/com/adobe/epubcheck/test/scripts/unused_expected_results.json @@ -109,11 +109,11 @@ } ], "customMessageFileName" : null, "checker" : { - "path" : "./com/adobe/epubcheck/test/scripts/unused.epub", + "path" : "./target/test-classes/com/adobe/epubcheck/test/scripts/unused.epub", "filename" : "unused.epub", "checkerVersion" : "4.2.0-beta-SNAPSHOT", - "checkDate" : "02-05-2019 15:38:31", - "elapsedTime" : 44, + "checkDate" : "02-24-2019 02:17:07", + "elapsedTime" : 140, "nFatal" : 0, "nError" : 0, "nWarning" : 0,