From 02df1786d1da0b5bd73d2cb0bdb9851ec709182f Mon Sep 17 00:00:00 2001 From: Geoffrey Sneddon Date: Tue, 26 Jun 2018 02:42:25 +0000 Subject: [PATCH] Bug 1467516 [wpt PR 11380] - Update html5lib and six, a=testonly Automatic update from web-platform-testsFix #7200: Update vendored html5lib to 1.0.1 This adds webencodings as another vendored package, and moves both to third_party (part of #10922). -- Fix #10922: move six into third_party and update to 1.11 -- wpt-commits: efdb898172298b29a50c2e39cd40ac191ee8b383, 7cd0b885a529734ef71afd3254df48f57f255512 wpt-pr: 11380 --HG-- rename : testing/web-platform/tests/tools/html5lib/.gitmodules => testing/web-platform/tests/tools/third_party/html5lib/.gitmodules rename : testing/web-platform/tests/tools/html5lib/CONTRIBUTING.rst => testing/web-platform/tests/tools/third_party/html5lib/CONTRIBUTING.rst rename : testing/web-platform/tests/tools/html5lib/LICENSE => testing/web-platform/tests/tools/third_party/html5lib/LICENSE rename : testing/web-platform/tests/tools/html5lib/doc/Makefile => testing/web-platform/tests/tools/third_party/html5lib/doc/Makefile rename : testing/web-platform/tests/tools/html5lib/doc/changes.rst => testing/web-platform/tests/tools/third_party/html5lib/doc/changes.rst rename : testing/web-platform/tests/tools/html5lib/doc/license.rst => testing/web-platform/tests/tools/third_party/html5lib/doc/license.rst rename : testing/web-platform/tests/tools/html5lib/doc/make.bat => testing/web-platform/tests/tools/third_party/html5lib/doc/make.bat rename : testing/web-platform/tests/tools/html5lib/doc/modules.rst => testing/web-platform/tests/tools/third_party/html5lib/doc/modules.rst rename : testing/web-platform/tests/tools/html5lib/html5lib/trie/datrie.py => testing/web-platform/tests/tools/third_party/html5lib/html5lib/_trie/datrie.py rename : testing/web-platform/tests/tools/html5lib/html5lib/trie/py.py => testing/web-platform/tests/tools/third_party/html5lib/html5lib/_trie/py.py rename : testing/web-platform/tests/tools/html5lib/html5lib/filters/_base.py => testing/web-platform/tests/tools/third_party/html5lib/html5lib/filters/base.py rename : testing/web-platform/tests/tools/html5lib/html5lib/tests/__init__.py => testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/__init__.py rename : testing/web-platform/tests/tools/html5lib/html5lib/tests/tokenizertotree.py => testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/tokenizertotree.py rename : testing/web-platform/tests/tools/html5lib/html5lib/tests/us-ascii.html => testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/us-ascii.html rename : testing/web-platform/tests/tools/html5lib/html5lib/tests/utf-8-bom.html => testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/utf-8-bom.html rename : testing/web-platform/tests/tools/six/MANIFEST.in => testing/web-platform/tests/tools/third_party/six/MANIFEST.in rename : testing/web-platform/tests/tools/six/documentation/Makefile => testing/web-platform/tests/tools/third_party/six/documentation/Makefile rename : testing/web-platform/tests/tools/html5lib/requirements.txt => testing/web-platform/tests/tools/third_party/six/six.egg-info/top_level.txt --- testing/web-platform/meta/MANIFEST.json | 2 +- testing/web-platform/tests/.gitmodules | 3 - .../web-platform/tests/tools/html5lib/.gitignore | 20 - .../web-platform/tests/tools/html5lib/.travis.yml | 37 - .../web-platform/tests/tools/html5lib/CHANGES.rst | 171 - .../tests/tools/html5lib/doc/html5lib.rst | 77 - .../tools/html5lib/doc/html5lib.serializer.rst | 19 - .../tools/html5lib/doc/html5lib.treewalkers.rst | 59 - .../tests/tools/html5lib/flake8-run.sh | 14 - .../tests/tools/html5lib/html5lib/__init__.py | 23 - .../html5lib/filters/alphabeticalattributes.py | 20 - .../tests/tools/html5lib/html5lib/filters/lint.py | 93 - .../tools/html5lib/html5lib/filters/sanitizer.py | 12 - .../tests/tools/html5lib/html5lib/sanitizer.py | 271 -- .../tools/html5lib/html5lib/serializer/__init__.py | 16 - .../html5lib/html5lib/serializer/htmlserializer.py | 320 -- .../tests/tools/html5lib/html5lib/tests/README | 1 - .../tools/html5lib/html5lib/tests/mockParser.py | 41 - .../html5lib/tests/performance/concatenation.py | 36 - .../tools/html5lib/html5lib/tests/test_encoding.py | 67 - .../tools/html5lib/html5lib/tests/test_parser.py | 96 - .../tools/html5lib/html5lib/tests/test_parser2.py | 64 - .../html5lib/html5lib/tests/test_sanitizer.py | 105 - .../html5lib/html5lib/tests/test_serializer.py | 178 -- .../tools/html5lib/html5lib/tests/test_stream.py | 183 -- .../html5lib/html5lib/tests/test_treewalkers.py | 353 --- .../html5lib/tests/test_whitespace_filter.py | 133 - .../html5lib/html5lib/treeadapters/__init__.py | 0 .../html5lib/html5lib/treebuilders/__init__.py | 76 - .../html5lib/html5lib/treewalkers/__init__.py | 57 - .../tools/html5lib/html5lib/treewalkers/pulldom.py | 63 - .../tests/tools/html5lib/requirements-install.sh | 16 - .../tools/html5lib/requirements-optional-2.6.txt | 5 - .../html5lib/requirements-optional-cpython.txt | 5 - .../tests/tools/html5lib/requirements-optional.txt | 13 - .../tests/tools/html5lib/requirements-test.txt | 5 - testing/web-platform/tests/tools/html5lib/setup.py | 44 - testing/web-platform/tests/tools/html5lib/tox.ini | 30 - .../tests/tools/html5lib/utils/iana_parse.py | 24 - .../tests/tools/html5lib/utils/spider.py | 122 - testing/web-platform/tests/tools/localpaths.py | 5 +- testing/web-platform/tests/tools/six/.gitignore | 9 - testing/web-platform/tests/tools/six/.hgignore | 8 - testing/web-platform/tests/tools/six/CONTRIBUTORS | 22 - testing/web-platform/tests/tools/six/README | 16 - testing/web-platform/tests/tools/six/setup.cfg | 2 - testing/web-platform/tests/tools/six/setup.py | 32 - testing/web-platform/tests/tools/six/tox.ini | 12 - .../tests/tools/third_party/html5lib/.appveyor.yml | 31 + .../tests/tools/third_party/html5lib/.coveragerc | 8 + .../tests/tools/third_party/html5lib/.gitignore | 85 + .../tools/{ => third_party}/html5lib/.gitmodules | 0 .../tools/third_party/html5lib/.prospector.yaml | 21 + .../tests/tools/third_party/html5lib/.pylintrc | 10 + .../tools/third_party/html5lib/.pytest.expect | 1322 ++++++++ .../tests/tools/third_party/html5lib/.travis.yml | 32 + .../tools/{ => third_party}/html5lib/AUTHORS.rst | 38 +- .../tests/tools/third_party/html5lib/CHANGES.rst | 335 ++ .../{ => third_party}/html5lib/CONTRIBUTING.rst | 0 .../tests/tools/{ => third_party}/html5lib/LICENSE | 0 .../tools/{ => third_party}/html5lib/MANIFEST.in | 4 + .../tools/{ => third_party}/html5lib/README.rst | 26 +- .../tools/{ => third_party}/html5lib/debug-info.py | 2 +- .../tools/{ => third_party}/html5lib/doc/Makefile | 0 .../{ => third_party}/html5lib/doc/changes.rst | 0 .../tools/{ => third_party}/html5lib/doc/conf.py | 2 +- .../html5lib/doc/html5lib.filters.rst | 19 +- .../tools/third_party/html5lib/doc/html5lib.rst | 38 + .../html5lib/doc/html5lib.treeadapters.rst | 20 + .../html5lib/doc/html5lib.treebuilders.rst | 15 +- .../html5lib/doc/html5lib.treewalkers.rst | 50 + .../tools/{ => third_party}/html5lib/doc/index.rst | 1 + .../{ => third_party}/html5lib/doc/license.rst | 0 .../tools/{ => third_party}/html5lib/doc/make.bat | 0 .../{ => third_party}/html5lib/doc/modules.rst | 0 .../{ => third_party}/html5lib/doc/movingparts.rst | 104 +- .../tests/tools/third_party/html5lib/flake8-run.sh | 9 + .../third_party/html5lib/html5lib/__init__.py | 35 + .../html5lib/html5lib/_ihatexml.py} | 15 +- .../html5lib/html5lib/_inputstream.py} | 231 +- .../html5lib/html5lib/_tokenizer.py} | 36 +- .../html5lib/html5lib/_trie}/__init__.py | 2 + .../html5lib/html5lib/_trie}/_base.py | 6 +- .../html5lib/html5lib/_trie}/datrie.py | 0 .../html5lib/html5lib/_trie}/py.py | 0 .../html5lib/html5lib/_utils.py} | 56 +- .../html5lib/html5lib/constants.py | 697 ++--- .../html5lib/html5lib/filters/__init__.py | 0 .../html5lib/filters/alphabeticalattributes.py | 29 + .../html5lib/html5lib/filters/base.py} | 0 .../html5lib/filters/inject_meta_charset.py | 16 +- .../third_party/html5lib/html5lib/filters/lint.py | 93 + .../html5lib/html5lib/filters/optionaltags.py | 12 +- .../html5lib/html5lib/filters/sanitizer.py | 896 ++++++ .../html5lib/html5lib/filters/whitespace.py | 8 +- .../html5lib/html5lib/html5parser.py | 668 ++-- .../third_party/html5lib/html5lib/serializer.py | 409 +++ .../html5lib/html5lib/tests/__init__.py | 0 .../html5lib/html5lib/tests/conftest.py | 108 + .../html5lib/tests/sanitizer-testdata/tests1.dat | 433 +++ .../html5lib/html5lib/tests/sanitizer.py | 50 + .../html5lib/tests/serializer-testdata/core.test | 395 +++ .../tests/serializer-testdata/injectmeta.test | 350 +++ .../tests/serializer-testdata/optionaltags.test | 3254 ++++++++++++++++++++ .../tests/serializer-testdata/options.test | 334 ++ .../tests/serializer-testdata/whitespace.test | 198 ++ .../html5lib/html5lib/tests/support.py | 77 +- .../html5lib/tests/test_alphabeticalattributes.py | 78 + .../html5lib/html5lib/tests/test_encoding.py | 116 + .../html5lib/html5lib/tests/test_meta.py | 41 + .../html5lib/tests/test_optionaltags_filter.py | 7 + .../html5lib/html5lib/tests/test_parser2.py | 130 + .../html5lib/html5lib/tests/test_sanitizer.py | 127 + .../html5lib/html5lib/tests/test_serializer.py | 225 ++ .../html5lib/html5lib/tests/test_stream.py | 323 ++ .../html5lib/html5lib/tests/test_treeadapters.py | 4 +- .../html5lib/html5lib/tests/test_treewalkers.py | 136 + .../html5lib/tests/test_whitespace_filter.py | 125 + .../html5lib/html5lib/tests/tokenizer.py} | 144 +- .../html5lib/html5lib/tests/tokenizertotree.py | 0 .../html5lib/html5lib/tests/tree_construction.py | 204 ++ .../html5lib/html5lib/tests/us-ascii.html | 0 .../html5lib/html5lib/tests/utf-8-bom.html | 0 .../html5lib/html5lib/treeadapters/__init__.py | 30 + .../html5lib/html5lib/treeadapters/genshi.py | 54 + .../html5lib/html5lib/treeadapters/sax.py | 8 +- .../html5lib/html5lib/treebuilders/__init__.py | 88 + .../html5lib/html5lib/treebuilders/base.py} | 82 +- .../html5lib/html5lib/treebuilders/dom.py | 49 +- .../html5lib/html5lib/treebuilders/etree.py | 21 +- .../html5lib/html5lib/treebuilders/etree_lxml.py | 43 +- .../html5lib/html5lib/treewalkers/__init__.py | 154 + .../html5lib/html5lib/treewalkers/base.py} | 180 +- .../html5lib/html5lib/treewalkers/dom.py | 19 +- .../html5lib/html5lib/treewalkers/etree.py | 34 +- .../html5lib/html5lib/treewalkers/etree_lxml.py} | 69 +- .../html5lib/html5lib/treewalkers/genshi.py} | 12 +- .../tools/{ => third_party}/html5lib/parse.py | 77 +- .../tests/tools/third_party/html5lib/pytest.ini | 17 + .../third_party/html5lib/requirements-install.sh | 15 + .../third_party/html5lib/requirements-optional.txt | 17 + .../third_party/html5lib/requirements-test.txt | 10 + .../tools/third_party/html5lib/requirements.txt | 2 + .../tests/tools/third_party/html5lib/setup.cfg | 14 + .../tests/tools/third_party/html5lib/setup.py | 125 + .../tests/tools/third_party/html5lib/tox.ini | 23 + .../{ => third_party}/html5lib/utils/entities.py | 50 +- .../tests/tools/{ => third_party}/six/CHANGES | 51 +- .../tests/tools/{ => third_party}/six/LICENSE | 2 +- .../tests/tools/{ => third_party}/six/MANIFEST.in | 0 .../tests/tools/third_party/six/PKG-INFO | 41 + .../tests/tools/third_party/six/README.rst | 25 + .../{ => third_party}/six/documentation/Makefile | 0 .../{ => third_party}/six/documentation/conf.py | 2 +- .../{ => third_party}/six/documentation/index.rst | 351 ++- .../tests/tools/third_party/six/setup.cfg | 21 + .../tests/tools/third_party/six/setup.py | 56 + .../tools/third_party/six/six.egg-info/PKG-INFO | 41 + .../tools/third_party/six/six.egg-info/SOURCES.txt | 15 + .../six/six.egg-info/dependency_links.txt | 1 + .../six/six.egg-info/top_level.txt} | 0 .../tests/tools/{ => third_party}/six/six.py | 170 +- .../tests/tools/{ => third_party}/six/test_six.py | 151 +- .../tests/tools/third_party/webencodings/PKG-INFO | 50 + .../tools/third_party/webencodings/README.rst | 25 + .../tests/tools/third_party/webencodings/setup.cfg | 14 + .../tests/tools/third_party/webencodings/setup.py | 47 + .../webencodings/webencodings.egg-info/PKG-INFO | 50 + .../webencodings/webencodings.egg-info/SOURCES.txt | 12 + .../webencodings.egg-info/dependency_links.txt | 1 + .../webencodings.egg-info/top_level.txt | 1 + .../webencodings/webencodings/__init__.py | 342 ++ .../webencodings/webencodings/labels.py | 231 ++ .../webencodings/webencodings/mklabels.py | 59 + .../third_party/webencodings/webencodings/tests.py | 153 + .../webencodings/webencodings/x_user_defined.py | 325 ++ 176 files changed, 14175 insertions(+), 4475 deletions(-) delete mode 100644 testing/web-platform/tests/tools/html5lib/.gitignore delete mode 100644 testing/web-platform/tests/tools/html5lib/.travis.yml delete mode 100644 testing/web-platform/tests/tools/html5lib/CHANGES.rst delete mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.rst delete mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.serializer.rst delete mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.treewalkers.rst delete mode 100755 testing/web-platform/tests/tools/html5lib/flake8-run.sh delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/__init__.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/alphabeticalattributes.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/lint.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/sanitizer.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/sanitizer.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/serializer/__init__.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/serializer/htmlserializer.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/README delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/mockParser.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/performance/concatenation.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_encoding.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_parser.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_parser2.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_sanitizer.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_serializer.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_stream.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_treewalkers.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_whitespace_filter.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treeadapters/__init__.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treebuilders/__init__.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/__init__.py delete mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/pulldom.py delete mode 100755 testing/web-platform/tests/tools/html5lib/requirements-install.sh delete mode 100644 testing/web-platform/tests/tools/html5lib/requirements-optional-2.6.txt delete mode 100644 testing/web-platform/tests/tools/html5lib/requirements-optional-cpython.txt delete mode 100644 testing/web-platform/tests/tools/html5lib/requirements-optional.txt delete mode 100644 testing/web-platform/tests/tools/html5lib/requirements-test.txt delete mode 100644 testing/web-platform/tests/tools/html5lib/setup.py delete mode 100644 testing/web-platform/tests/tools/html5lib/tox.ini delete mode 100644 testing/web-platform/tests/tools/html5lib/utils/iana_parse.py delete mode 100644 testing/web-platform/tests/tools/html5lib/utils/spider.py delete mode 100644 testing/web-platform/tests/tools/six/.gitignore delete mode 100644 testing/web-platform/tests/tools/six/.hgignore delete mode 100644 testing/web-platform/tests/tools/six/CONTRIBUTORS delete mode 100644 testing/web-platform/tests/tools/six/README delete mode 100644 testing/web-platform/tests/tools/six/setup.cfg delete mode 100644 testing/web-platform/tests/tools/six/setup.py delete mode 100644 testing/web-platform/tests/tools/six/tox.ini create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.appveyor.yml create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.coveragerc create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.gitignore rename testing/web-platform/tests/tools/{ => third_party}/html5lib/.gitmodules (100%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.prospector.yaml create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.pylintrc create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.pytest.expect create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/.travis.yml rename testing/web-platform/tests/tools/{ => third_party}/html5lib/AUTHORS.rst (52%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/CHANGES.rst rename testing/web-platform/tests/tools/{ => third_party}/html5lib/CONTRIBUTING.rst (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/LICENSE (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/MANIFEST.in (65%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/README.rst (79%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/debug-info.py (88%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/Makefile (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/changes.rst (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/conf.py (99%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/html5lib.filters.rst (77%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/doc/html5lib.rst create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/doc/html5lib.treeadapters.rst rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/html5lib.treebuilders.rst (73%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/doc/html5lib.treewalkers.rst rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/index.rst (95%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/license.rst (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/make.bat (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/modules.rst (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/doc/movingparts.rst (56%) create mode 100755 testing/web-platform/tests/tools/third_party/html5lib/flake8-run.sh create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/__init__.py rename testing/web-platform/tests/tools/{html5lib/html5lib/ihatexml.py => third_party/html5lib/html5lib/_ihatexml.py} (97%) rename testing/web-platform/tests/tools/{html5lib/html5lib/inputstream.py => third_party/html5lib/html5lib/_inputstream.py} (80%) rename testing/web-platform/tests/tools/{html5lib/html5lib/tokenizer.py => third_party/html5lib/html5lib/_tokenizer.py} (98%) rename testing/web-platform/tests/tools/{html5lib/html5lib/trie => third_party/html5lib/html5lib/_trie}/__init__.py (73%) rename testing/web-platform/tests/tools/{html5lib/html5lib/trie => third_party/html5lib/html5lib/_trie}/_base.py (85%) rename testing/web-platform/tests/tools/{html5lib/html5lib/trie => third_party/html5lib/html5lib/_trie}/datrie.py (100%) rename testing/web-platform/tests/tools/{html5lib/html5lib/trie => third_party/html5lib/html5lib/_trie}/py.py (100%) rename testing/web-platform/tests/tools/{html5lib/html5lib/utils.py => third_party/html5lib/html5lib/_utils.py} (55%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/constants.py (81%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/filters/__init__.py (100%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/filters/alphabeticalattributes.py rename testing/web-platform/tests/tools/{html5lib/html5lib/filters/_base.py => third_party/html5lib/html5lib/filters/base.py} (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/filters/inject_meta_charset.py (88%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/filters/lint.py rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/filters/optionaltags.py (96%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/filters/sanitizer.py rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/filters/whitespace.py (85%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/html5parser.py (85%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/serializer.py rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/tests/__init__.py (100%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/conftest.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/sanitizer-testdata/tests1.dat create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/sanitizer.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/serializer-testdata/core.test create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/serializer-testdata/injectmeta.test create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/serializer-testdata/optionaltags.test create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/serializer-testdata/options.test create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/serializer-testdata/whitespace.test rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/tests/support.py (70%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_alphabeticalattributes.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_encoding.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_meta.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_optionaltags_filter.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_parser2.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_sanitizer.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_serializer.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_stream.py rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/tests/test_treeadapters.py (93%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_treewalkers.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/test_whitespace_filter.py rename testing/web-platform/tests/tools/{html5lib/html5lib/tests/test_tokenizer.py => third_party/html5lib/html5lib/tests/tokenizer.py} (52%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/tests/tokenizertotree.py (100%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/tree_construction.py rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/tests/us-ascii.html (100%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/tests/utf-8-bom.html (100%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/treeadapters/__init__.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/treeadapters/genshi.py rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/treeadapters/sax.py (89%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/treebuilders/__init__.py rename testing/web-platform/tests/tools/{html5lib/html5lib/treebuilders/_base.py => third_party/html5lib/html5lib/treebuilders/base.py} (86%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/treebuilders/dom.py (85%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/treebuilders/etree.py (96%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/treebuilders/etree_lxml.py (93%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/html5lib/treewalkers/__init__.py rename testing/web-platform/tests/tools/{html5lib/html5lib/treewalkers/_base.py => third_party/html5lib/html5lib/treewalkers/base.py} (52%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/treewalkers/dom.py (70%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/html5lib/treewalkers/etree.py (84%) rename testing/web-platform/tests/tools/{html5lib/html5lib/treewalkers/lxmletree.py => third_party/html5lib/html5lib/treewalkers/etree_lxml.py} (72%) rename testing/web-platform/tests/tools/{html5lib/html5lib/treewalkers/genshistream.py => third_party/html5lib/html5lib/treewalkers/genshi.py} (90%) rename testing/web-platform/tests/tools/{ => third_party}/html5lib/parse.py (78%) create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/pytest.ini create mode 100755 testing/web-platform/tests/tools/third_party/html5lib/requirements-install.sh create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/requirements-optional.txt create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/requirements-test.txt create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/requirements.txt create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/setup.cfg create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/setup.py create mode 100644 testing/web-platform/tests/tools/third_party/html5lib/tox.ini rename testing/web-platform/tests/tools/{ => third_party}/html5lib/utils/entities.py (67%) rename testing/web-platform/tests/tools/{ => third_party}/six/CHANGES (82%) rename testing/web-platform/tests/tools/{ => third_party}/six/LICENSE (96%) rename testing/web-platform/tests/tools/{ => third_party}/six/MANIFEST.in (100%) create mode 100644 testing/web-platform/tests/tools/third_party/six/PKG-INFO create mode 100644 testing/web-platform/tests/tools/third_party/six/README.rst rename testing/web-platform/tests/tools/{ => third_party}/six/documentation/Makefile (100%) rename testing/web-platform/tests/tools/{ => third_party}/six/documentation/conf.py (99%) rename testing/web-platform/tests/tools/{ => third_party}/six/documentation/index.rst (73%) create mode 100644 testing/web-platform/tests/tools/third_party/six/setup.cfg create mode 100644 testing/web-platform/tests/tools/third_party/six/setup.py create mode 100644 testing/web-platform/tests/tools/third_party/six/six.egg-info/PKG-INFO create mode 100644 testing/web-platform/tests/tools/third_party/six/six.egg-info/SOURCES.txt create mode 100644 testing/web-platform/tests/tools/third_party/six/six.egg-info/dependency_links.txt rename testing/web-platform/tests/tools/{html5lib/requirements.txt => third_party/six/six.egg-info/top_level.txt} (100%) rename testing/web-platform/tests/tools/{ => third_party}/six/six.py (87%) rename testing/web-platform/tests/tools/{ => third_party}/six/test_six.py (82%) create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/PKG-INFO create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/README.rst create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/setup.cfg create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/setup.py create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings.egg-info/PKG-INFO create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings.egg-info/SOURCES.txt create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings.egg-info/dependency_links.txt create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings.egg-info/top_level.txt create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings/__init__.py create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings/labels.py create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings/mklabels.py create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings/tests.py create mode 100644 testing/web-platform/tests/tools/third_party/webencodings/webencodings/x_user_defined.py diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 2b42766a8579..e885533838bf 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -405432,7 +405432,7 @@ "support" ], "./.gitmodules": [ - "6a203e28d43909d7513daf8761281b351d2b2bd7", + "9e008399bdce736c7c03f7db0c3e8d624083c6b9", "support" ], "./.pyup.yml": [ diff --git a/testing/web-platform/tests/.gitmodules b/testing/web-platform/tests/.gitmodules index 90c91af579f8..f40c77f6331e 100644 --- a/testing/web-platform/tests/.gitmodules +++ b/testing/web-platform/tests/.gitmodules @@ -1,6 +1,3 @@ -[submodule "tools/html5lib/html5lib/tests/testdata"] - path = tools/html5lib/html5lib/tests/testdata - url = https://github.com/html5lib/html5lib-tests.git [submodule "resources/webidl2/test/widlproc"] path = resources/webidl2/test/widlproc url = https://github.com/dontcallmedom/widlproc.git \ No newline at end of file diff --git a/testing/web-platform/tests/tools/html5lib/.gitignore b/testing/web-platform/tests/tools/html5lib/.gitignore deleted file mode 100644 index 73d97fec0733..000000000000 --- a/testing/web-platform/tests/tools/html5lib/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -# Because we never want compiled Python -__pycache__/ -*.pyc - -# Ignore stuff produced by distutils -/build/ -/dist/ -/MANIFEST - -# Generated by parse.py -p -stats.prof - -# From cover (esp. in combination with nose) -.coverage - -# Because tox's data is inherently local -/.tox/ - -# We have no interest in built Sphinx files -/doc/_build diff --git a/testing/web-platform/tests/tools/html5lib/.travis.yml b/testing/web-platform/tests/tools/html5lib/.travis.yml deleted file mode 100644 index dd3130019e7a..000000000000 --- a/testing/web-platform/tests/tools/html5lib/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: python -python: - - "2.6" - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "pypy" - -env: - - USE_OPTIONAL=true - - USE_OPTIONAL=false - -matrix: - exclude: - - python: "2.7" - env: USE_OPTIONAL=false - - python: "3.4" - env: USE_OPTIONAL=false - include: - - python: "2.7" - env: USE_OPTIONAL=false FLAKE=true - - python: "3.4" - env: USE_OPTIONAL=false FLAKE=true - -before_install: - - git submodule update --init --recursive - -install: - - bash requirements-install.sh - -script: - - nosetests - - bash flake8-run.sh - -after_script: - - python debug-info.py diff --git a/testing/web-platform/tests/tools/html5lib/CHANGES.rst b/testing/web-platform/tests/tools/html5lib/CHANGES.rst deleted file mode 100644 index 1431b3c9b8fa..000000000000 --- a/testing/web-platform/tests/tools/html5lib/CHANGES.rst +++ /dev/null @@ -1,171 +0,0 @@ -Change Log ----------- - -0.9999 -~~~~~~ - -Released on XXX, 2014 - -* XXX - - -0.999 -~~~~~ - -Released on December 23, 2013 - -* Fix #127: add work-around for CPython issue #20007: .read(0) on - http.client.HTTPResponse drops the rest of the content. - -* Fix #115: lxml treewalker can now deal with fragments containing, at - their root level, text nodes with non-ASCII characters on Python 2. - - -0.99 -~~~~ - -Released on September 10, 2013 - -* No library changes from 1.0b3; released as 0.99 as pip has changed - behaviour from 1.4 to avoid installing pre-release versions per - PEP 440. - - -1.0b3 -~~~~~ - -Released on July 24, 2013 - -* Removed ``RecursiveTreeWalker`` from ``treewalkers._base``. Any - implementation using it should be moved to - ``NonRecursiveTreeWalker``, as everything bundled with html5lib has - for years. - -* Fix #67 so that ``BufferedStream`` to correctly returns a bytes - object, thereby fixing any case where html5lib is passed a - non-seekable RawIOBase-like object. - - -1.0b2 -~~~~~ - -Released on June 27, 2013 - -* Removed reordering of attributes within the serializer. There is now - an ``alphabetical_attributes`` option which preserves the previous - behaviour through a new filter. This allows attribute order to be - preserved through html5lib if the tree builder preserves order. - -* Removed ``dom2sax`` from DOM treebuilders. It has been replaced by - ``treeadapters.sax.to_sax`` which is generic and supports any - treewalker; it also resolves all known bugs with ``dom2sax``. - -* Fix treewalker assertions on hitting bytes strings on - Python 2. Previous to 1.0b1, treewalkers coped with mixed - bytes/unicode data on Python 2; this reintroduces this prior - behaviour on Python 2. Behaviour is unchanged on Python 3. - - -1.0b1 -~~~~~ - -Released on May 17, 2013 - -* Implementation updated to implement the `HTML specification - `_ as of 5th May - 2013 (`SVN `_ revision r7867). - -* Python 3.2+ supported in a single codebase using the ``six`` library. - -* Removed support for Python 2.5 and older. - -* Removed the deprecated Beautiful Soup 3 treebuilder. - ``beautifulsoup4`` can use ``html5lib`` as a parser instead. Note that - since it doesn't support namespaces, foreign content like SVG and - MathML is parsed incorrectly. - -* Removed ``simpletree`` from the package. The default tree builder is - now ``etree`` (using the ``xml.etree.cElementTree`` implementation if - available, and ``xml.etree.ElementTree`` otherwise). - -* Removed the ``XHTMLSerializer`` as it never actually guaranteed its - output was well-formed XML, and hence provided little of use. - -* Removed default DOM treebuilder, so ``html5lib.treebuilders.dom`` is no - longer supported. ``html5lib.treebuilders.getTreeBuilder("dom")`` will - return the default DOM treebuilder, which uses ``xml.dom.minidom``. - -* Optional heuristic character encoding detection now based on - ``charade`` for Python 2.6 - 3.3 compatibility. - -* Optional ``Genshi`` treewalker support fixed. - -* Many bugfixes, including: - - * #33: null in attribute value breaks XML AttValue; - - * #4: nested, indirect descendant,