validator-1.3/ 0000755 0000000 0000000 00000000000 11727410341 012040 5 ustar root root validator-1.3/Makefile 0000644 0000000 0000000 00000004146 11727410062 013505 0 ustar root root VERSION = $(shell perl -ne '/^\$$VERSION\b.*?([\d.]+)/ && print $$1' httpd/cgi-bin/check)
CSS_FILES = htdocs/style/base.css htdocs/style/results.css
JS_SOURCES = htdocs/scripts/mootools-1.2.5-core-nc.js \
htdocs/scripts/mootools-1.2.5.1-more.js htdocs/scripts/w3c-validator.js
PERL_FILES = httpd/cgi-bin/check httpd/cgi-bin/sendfeedback.pl \
httpd/mod_perl/startup.pl misc/soc2xml.pl misc/spmpp.pl \
misc/docs_errors.pl misc/bundle/Makefile.PL \
misc/bundle/lib/Bundle/W3C/Validator.pm
GZIP_FILES = $(addsuffix .gz,$(CSS_FILES)) htdocs/scripts/combined.js.gz
PERLTIDY = perltidy --profile=misc/perltidyrc --backup-and-modify-in-place
PERLCRITIC = perlcritic --profile misc/perlcriticrc
YUICOMPRESSOR = java -jar $(wildcard /usr/share/java/yuicompressor*.jar)
GZIP = gzip -9n
VALIDATOR_URI = http://localhost/w3c-validator/check
# Override the above variables in config.mk if needed.
-include config.mk
all: htdocs/docs/errors.html htdocs/sgml-lib/catalog.xml $(GZIP_FILES)
htdocs/docs/errors.html: misc/docs_errors.pl share/templates/en_US/error_messages.cfg share/templates/en_US/docs_errors.tmpl htdocs/config/validator.conf
env W3C_VALIDATOR_HOME=. W3C_VALIDATOR_CFG=htdocs/config/validator.conf misc/docs_errors.pl > $@
htdocs/sgml-lib/catalog.xml: misc/soc2xml.pl htdocs/sgml-lib/xml.soc
misc/soc2xml.pl < htdocs/sgml-lib/xml.soc > $@
htdocs/scripts/combined.js: $(JS_SOURCES)
rm -f $@
@for src in $(JS_SOURCES) ; do \
echo "$(YUICOMPRESSOR) $$src >> $@" ; \
$(YUICOMPRESSOR) $$src >> $@ ; \
done
.css.css.gz .js.js.gz:
$(GZIP) -c $< > $@ && touch -r $< $@
test:
misc/testsuite/harness.py --validator_uri=$(VALIDATOR_URI) run
perlcritic:
$(PERLCRITIC) $(PERL_FILES)
perltidy:
@for file in $(PERL_FILES) ; do \
echo "$(PERLTIDY) $$file" ; \
$(PERLTIDY) $$file ; \
done
clean:
rm -f $(GZIP_FILES)
dist: all
@for file in htdocs/footer.html htdocs/whatsnew.html \
httpd/cgi-bin/check share/templates/*/footer.tmpl ; do \
grep -qF "$(VERSION)" $$file || { \
echo "Validator version in $$file seems out of date." ; \
exit 1 ; } ; \
done
misc/mkrelease.sh $(VERSION)
.SUFFIXES: .css .css.gz .js .js.gz
validator-1.3/misc/ 0000755 0000000 0000000 00000000000 11727410341 012773 5 ustar root root validator-1.3/misc/perltidyrc 0000644 0000000 0000000 00000000606 11537471206 015107 0 ustar root root # perltidy(1) profile for the W3C Markup Validator
--standard-error-output
--warning-output
--output-line-ending=unix
--maximum-line-length=79
--indent-columns=4
--continuation-indentation=4
--vertical-tightness=2
--paren-tightness=2
--brace-tightness=2
--square-bracket-tightness=2
--opening-sub-brace-on-new-line
--nospace-for-semicolon
--nooutdent-long-lines
--break-after-all-operators
validator-1.3/misc/testsuite/ 0000755 0000000 0000000 00000000000 11727410062 015024 5 ustar root root validator-1.3/misc/testsuite/samples/ 0000755 0000000 0000000 00000000000 11537471206 016476 5 ustar root root validator-1.3/misc/testsuite/samples/collection.xml 0000644 0000000 0000000 00000000401 11537471206 021346 0 ustar root root
This page lists a few test documents and test scenarios for the W3C Markup Validator make sure everything works fine after making changes to the validator. If you can think of interesting test cases that aren't on this page, let us know.
This test suite is work in progress. Please submit any issue or idea to the public mailing-list public-qa-dev@w3.org
do not edit this page, it is automatically generated from the validator's automated test suite. If you want to add tests, edit the test suite's catalog instead.
{{collection.description}}
{% for case in collection._tests %}validate - with v.w.o - view: {{case.description|e}}
{% endfor %} {% endfor %}The following test collections are not managed by the automated test suite, and should be tested by hand on a regular basis
The following tests do not test the binary "validity" results, but the proper handling of options, errors, various outputs, etc. "validate" links use this instance, with validator.w3.org links added for reference comparison
These should be tied to a bug report on either mailing-list and/or bugzilla whenever possible.