From ba37ecd7d6606e26d07e70b9a9a5ae778e4619d7 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sun, 3 Aug 2014 21:04:36 +0200 Subject: [PATCH] Add abt 30 test files, and a testhtml5.cmd --- test/html5/article.org.html | 15 +++++ test/html5/aside.org.html | 17 ++++++ test/html5/bdi.org.html | 24 ++++++++ test/html5/datalist.org.html | 24 ++++++++ test/html5/datalist2.org.html | 30 ++++++++++ test/html5/datalist3.org.html | 46 ++++++++++++++ test/html5/details.org.html | 18 ++++++ test/html5/dialog.org.html | 32 ++++++++++ test/html5/figure.org.html | 17 ++++++ test/html5/footer.org.html | 16 +++++ test/html5/formselect.org.html | 36 +++++++++++ test/html5/formselect2.org.html | 20 +++++++ test/html5/header.org.html | 19 ++++++ test/html5/keygen.org.html | 18 ++++++ test/html5/main.org.html | 33 +++++++++++ test/html5/mark.org.html | 13 ++++ test/html5/mav.org.html | 19 ++++++ test/html5/menuitem.org.html | 29 +++++++++ test/html5/meter.org.html | 18 ++++++ test/html5/min.org.html | 10 ++++ test/html5/output.org.html | 18 ++++++ test/html5/progress.org.html | 18 ++++++ test/html5/removed.org.html | 29 +++++++++ test/html5/rp.org.html | 16 +++++ test/html5/section.org.html | 22 +++++++ test/html5/select2.org.html | 20 +++++++ test/html5/summary.org.html | 21 +++++++ test/html5/testhtml5.cmd | 102 ++++++++++++++++++++++++++++++++ test/html5/time.org.html | 16 +++++ test/html5/video.org.html | 15 +++++ test/html5/wbr.org.html | 20 +++++++ 31 files changed, 751 insertions(+) create mode 100644 test/html5/article.org.html create mode 100644 test/html5/aside.org.html create mode 100644 test/html5/bdi.org.html create mode 100644 test/html5/datalist.org.html create mode 100644 test/html5/datalist2.org.html create mode 100644 test/html5/datalist3.org.html create mode 100644 test/html5/details.org.html create mode 100644 test/html5/dialog.org.html create mode 100644 test/html5/figure.org.html create mode 100644 test/html5/footer.org.html create mode 100644 test/html5/formselect.org.html create mode 100644 test/html5/formselect2.org.html create mode 100644 test/html5/header.org.html create mode 100644 test/html5/keygen.org.html create mode 100644 test/html5/main.org.html create mode 100644 test/html5/mark.org.html create mode 100644 test/html5/mav.org.html create mode 100644 test/html5/menuitem.org.html create mode 100644 test/html5/meter.org.html create mode 100644 test/html5/min.org.html create mode 100644 test/html5/output.org.html create mode 100644 test/html5/progress.org.html create mode 100644 test/html5/removed.org.html create mode 100644 test/html5/rp.org.html create mode 100644 test/html5/section.org.html create mode 100644 test/html5/select2.org.html create mode 100644 test/html5/summary.org.html create mode 100644 test/html5/testhtml5.cmd create mode 100644 test/html5/time.org.html create mode 100644 test/html5/video.org.html create mode 100644 test/html5/wbr.org.html diff --git a/test/html5/article.org.html b/test/html5/article.org.html new file mode 100644 index 0000000..e9d18c4 --- /dev/null +++ b/test/html5/article.org.html @@ -0,0 +1,15 @@ + + + + +HTML5 article tag + + + +
+

Google Chrome

+

Google Chrome is a free, open-source web browser developed by Google, released in 2008.

+
+ + + diff --git a/test/html5/aside.org.html b/test/html5/aside.org.html new file mode 100644 index 0000000..054ef6f --- /dev/null +++ b/test/html5/aside.org.html @@ -0,0 +1,17 @@ + + + +Minimum HTML5 document + + + + +

My family and I visited The Epcot center this summer.

+ + + + + diff --git a/test/html5/bdi.org.html b/test/html5/bdi.org.html new file mode 100644 index 0000000..374cc17 --- /dev/null +++ b/test/html5/bdi.org.html @@ -0,0 +1,24 @@ + + + +HTML5 bdi element + + + + +

+In the example below, usernames are shown along with the number of points in a contest. +If the bdi element is not supported in the browser, the username of the Arabic user would confuse the text (the bidirectional algorithm would put the colon and the number "90" next to the word "User" rather than next to the word "points"). +

+ + + +

Note: The bdi element is currently supported only in Firefox and Chrome.

+ + + + diff --git a/test/html5/datalist.org.html b/test/html5/datalist.org.html new file mode 100644 index 0000000..6752460 --- /dev/null +++ b/test/html5/datalist.org.html @@ -0,0 +1,24 @@ + + + + +HTML5 datalist tag + + + +
+ + + + +
+ +

Note: The datalist tag is not supported in Internet Explorer 9 and earlier versions, or in Safari.

+ + + diff --git a/test/html5/datalist2.org.html b/test/html5/datalist2.org.html new file mode 100644 index 0000000..90676ce --- /dev/null +++ b/test/html5/datalist2.org.html @@ -0,0 +1,30 @@ + + + + + + HTML5 datalist2 + + + + +
+

Select city

+

+ + + +

+

+ +

+
+ + + + diff --git a/test/html5/datalist3.org.html b/test/html5/datalist3.org.html new file mode 100644 index 0000000..ca09acb --- /dev/null +++ b/test/html5/datalist3.org.html @@ -0,0 +1,46 @@ + + + + + HTML5 form input datalist 3 + + + + + +
+

Select the city 1 + + + +

+ +
+

Select the city 2 + + + + +

+ +
+

Select browser + + + + +

+ + + + diff --git a/test/html5/details.org.html b/test/html5/details.org.html new file mode 100644 index 0000000..2bd71b3 --- /dev/null +++ b/test/html5/details.org.html @@ -0,0 +1,18 @@ + + + +HTML5 details + + + + +
+Copyright 1999-2014. +

- by Refsnes Data. All Rights Reserved.

+

All content and graphics on this web site are the property of the company Refsnes Data.

+
+ +

Note: The details tag is currently only supported in Opera, Chrome, and in Safari 6.

+ + + diff --git a/test/html5/dialog.org.html b/test/html5/dialog.org.html new file mode 100644 index 0000000..178b092 --- /dev/null +++ b/test/html5/dialog.org.html @@ -0,0 +1,32 @@ + + + + +HTML5 dialog element + + + + +

Note: The dialog tag is only supported in Chrome Canary and Safari 6.

+ + + + + + + + + + + + +
January This is an open dialog windowFebruaryMarch
312831
+ + + + diff --git a/test/html5/figure.org.html b/test/html5/figure.org.html new file mode 100644 index 0000000..86f7456 --- /dev/null +++ b/test/html5/figure.org.html @@ -0,0 +1,17 @@ + + + + +HTML5 figure and figcaption + + + +

The Pulpit Rock is a massive cliff 604 metres (1982 feet) above Lysefjorden, opposite the Kjerag plateau, in Forsand, Ryfylke, Norway. The top of the cliff is approximately 25 by 25 metres (82 by 82 feet) square and almost flat, and is a famous tourist attraction in Norway.

+ +
+ The Pulpit Rock +
Fig.1 - A view of the pulpit rock in Norway.
+
+ + + diff --git a/test/html5/footer.org.html b/test/html5/footer.org.html new file mode 100644 index 0000000..275330e --- /dev/null +++ b/test/html5/footer.org.html @@ -0,0 +1,16 @@ + + + + +HTML5 footer tag + + + + + + + + diff --git a/test/html5/formselect.org.html b/test/html5/formselect.org.html new file mode 100644 index 0000000..24e6d1f --- /dev/null +++ b/test/html5/formselect.org.html @@ -0,0 +1,36 @@ + + + + + + HTML form/select/option + + + + +
+

Which course would you like to watch today? +

+

+

+ + + diff --git a/test/html5/formselect2.org.html b/test/html5/formselect2.org.html new file mode 100644 index 0000000..4d0c43a --- /dev/null +++ b/test/html5/formselect2.org.html @@ -0,0 +1,20 @@ + + + + +HTML form/select/option 2 + + +
+

Which course would you like to watch today? +

+ +

+

+ + diff --git a/test/html5/header.org.html b/test/html5/header.org.html new file mode 100644 index 0000000..a252a5f --- /dev/null +++ b/test/html5/header.org.html @@ -0,0 +1,19 @@ + + + + +HTML5 header for article + + + +
+
+

Internet Explorer 9

+

+
+

Windows Internet Explorer 9 (abbreviated as IE9) was released to + the public on March 14, 2011 at 21:00 PDT.....

+
+ + + diff --git a/test/html5/keygen.org.html b/test/html5/keygen.org.html new file mode 100644 index 0000000..a5cc933 --- /dev/null +++ b/test/html5/keygen.org.html @@ -0,0 +1,18 @@ + + + + +HTML5 keygen tag + + + +
+ Username: + Encryption: + +
+ +

Note: The keygen tag is not supported in Internet Explorer.

+ + + diff --git a/test/html5/main.org.html b/test/html5/main.org.html new file mode 100644 index 0000000..2a1f612 --- /dev/null +++ b/test/html5/main.org.html @@ -0,0 +1,33 @@ + + + + + + HTML5 main tag + + + + + +
+

Web Browsers

+

Google Chrome, Firefox, and Internet Explorer are the most used browsers today.

+ +
+

Google Chrome

+

Google Chrome is a free, open-source web browser developed by Google, released in 2008.

+
+ +
+

Internet Explorer

+

Internet Explorer is a free web browser from Microsoft, released in 1995.

+
+ +
+

Mozilla Firefox

+

Firefox is a free, open-source web browser from Mozilla, released in 2004.

+
+
+ + + diff --git a/test/html5/mark.org.html b/test/html5/mark.org.html new file mode 100644 index 0000000..13ffdbb --- /dev/null +++ b/test/html5/mark.org.html @@ -0,0 +1,13 @@ + + + + +HTML5 mark tag + + + +

Do not forget to buy milk today.

+ + + + diff --git a/test/html5/mav.org.html b/test/html5/mav.org.html new file mode 100644 index 0000000..aebbcfe --- /dev/null +++ b/test/html5/mav.org.html @@ -0,0 +1,19 @@ + + + + + + HTML5 nav tag + + + + + + + + diff --git a/test/html5/menuitem.org.html b/test/html5/menuitem.org.html new file mode 100644 index 0000000..4e0bb6f --- /dev/null +++ b/test/html5/menuitem.org.html @@ -0,0 +1,29 @@ + + + + + + HTML5 menu item + + + + +
+

Right-click inside this box to see the context menu! + +

+ + + + + + + + +
+ +

This example currently only works in Firefox!

+ + + + diff --git a/test/html5/meter.org.html b/test/html5/meter.org.html new file mode 100644 index 0000000..4852f7b --- /dev/null +++ b/test/html5/meter.org.html @@ -0,0 +1,18 @@ + + + + + + HTML5 meter tag + + + + +

Display a gauge:

+2 out of 10
+60% + +

Note: The meter tag is not supported in Internet Explorer or Safari 5 (and earlier versions).

+ + + diff --git a/test/html5/min.org.html b/test/html5/min.org.html new file mode 100644 index 0000000..5930f56 --- /dev/null +++ b/test/html5/min.org.html @@ -0,0 +1,10 @@ + + + + +Minimum HTML5 document + + +Content of the document...... + + diff --git a/test/html5/output.org.html b/test/html5/output.org.html new file mode 100644 index 0000000..d5682ac --- /dev/null +++ b/test/html5/output.org.html @@ -0,0 +1,18 @@ + + + + +HTML5 ouput tag + + + +
0 +100 ++ += +
+ +

Note: The output tag is not supported in Internet Explorer.

+ + + diff --git a/test/html5/progress.org.html b/test/html5/progress.org.html new file mode 100644 index 0000000..017a493 --- /dev/null +++ b/test/html5/progress.org.html @@ -0,0 +1,18 @@ + + + + + + HTML5 progress tag + + + + +Downloading progress: + + + +

Note: The progress tag is not supported in Internet Explorer 9 and earlier versions.

+ + + diff --git a/test/html5/removed.org.html b/test/html5/removed.org.html new file mode 100644 index 0000000..c40ff8b --- /dev/null +++ b/test/html5/removed.org.html @@ -0,0 +1,29 @@ + + + + + + HTML5 removed elements + + + +

Removed Elements

+ +

The following HTML 4.01 elements has been removed from HTML5: + +

+ + diff --git a/test/html5/rp.org.html b/test/html5/rp.org.html new file mode 100644 index 0000000..0c5c2c7 --- /dev/null +++ b/test/html5/rp.org.html @@ -0,0 +1,16 @@ + + + + + + HTML5 ruby rt rp tags + + + + + +漢 (ㄏㄢˋ) + + + + diff --git a/test/html5/section.org.html b/test/html5/section.org.html new file mode 100644 index 0000000..2734c7e --- /dev/null +++ b/test/html5/section.org.html @@ -0,0 +1,22 @@ + + + + + + HTML5 section tag + + + + +
+

WWF

+

The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.

+
+ +
+

WWF's Panda symbol

+

The Panda has become the symbol of WWF. The well-known panda logo of WWF originated from a panda named Chi Chi that was transferred from the Beijing Zoo to the London Zoo in the same year of the establishment of WWF.

+
+ + + diff --git a/test/html5/select2.org.html b/test/html5/select2.org.html new file mode 100644 index 0000000..5ee194e --- /dev/null +++ b/test/html5/select2.org.html @@ -0,0 +1,20 @@ + + + + +HTML5 select 2 + + +
+

Select city +

+ + +

+

+ + diff --git a/test/html5/summary.org.html b/test/html5/summary.org.html new file mode 100644 index 0000000..d388b40 --- /dev/null +++ b/test/html5/summary.org.html @@ -0,0 +1,21 @@ + + + + + + Minimum HTML5 document + + + + +
+Copyright 1999-2011. +

- by Refsnes Data. All Rights Reserved.

+

All content and graphics on this web site are the property of the company Refsnes Data.

+
+ +

Note: The summary element is currently supported only in Opera, Chrome and Safari +6.

+ + + diff --git a/test/html5/testhtml5.cmd b/test/html5/testhtml5.cmd new file mode 100644 index 0000000..cc3a8c1 --- /dev/null +++ b/test/html5/testhtml5.cmd @@ -0,0 +1,102 @@ +@setlocal + +@set TMPEXE=..\..\build\cmake\Release\tidy5.exe +@if NOT EXIST %TMPEXE% goto NOEXE +@set TMPINP=temphtml5.cfg +@set TMPDIR=tempout + +@%TMPEXE% -h > nul +@if ERRORLEVEL 1 goto NOEXE + +@if EXIST %TMPDIR%\nul goto GOTOUT +@echo Will create the folder %TMPDIR% for output... +@pause +@md %TMPDIR% +@if ERRORLEVEL 1 goto NOOUT +@if NOT EXIST %TMPDIR%\nul goto NODIR +:GOTOUT + +@REM This option would be nice, but at present it is FARRRR TOOOOO agressive, +@REM dropping , , etc... because they are marked CM_OPT +@REM which causes WARNINGS when tidy is run on the tidied file!!! +@REM echo omit-optional-tags: yes >> %TMPINP% + +@if EXIST %TMPINP% goto GOTINP +@echo Creating a CONFIG file %TMPINP% +@pause +@echo wrap: 99 > %TMPINP% +@echo tidy-mark: no >> %TMPINP% +@echo indent: yes >> %TMPINP% +@echo break-before-br: yes >> %TMPINP% +@echo indent-attributes: yes >> %TMPINP% +@echo vertical-space: yes >> %TMPINP% +@echo indent-spaces: 1 >> %TMPINP% +@echo indent-cdata: no >> %TMPINP% +@echo wrap-asp: no >> %TMPINP% +@echo wrap-attributes: no >> %TMPINP% +@echo wrap-jste: no >> %TMPINP% +@echo wrap-php: no >> %TMPINP% +@echo wrap-script-literals: no >> %TMPINP% +@echo wrap-sections: no >> %TMPINP% +@echo tab-size: 4 >> %TMPINP% +@echo show-info: no >> %TMPINP% +@if NOT EXIST %TMPINP% goto NOINP +:GOTINP +@set TMPCNT1=0 +@set TMPCNT2=0 +@set TMPCNT3=0 + +@for %%i in (*.org.html) do @(call :CNTIT %%i) +@echo Will process %TMPCNT1% files found... +@echo All should exit with NO WARNINGS or ERRORS +@echo *** CONTINUE? *** Only Ctlr+C aborts... all other keys continue... +@pause + +@for %%i in (*.org.html) do @(call :DOONE %%i) + +@echo Done %TMPCNT2% files. See tidied output in %TMPDIR%... +@if "%TMPCNT3%x" == "0x" ( +@echo With NO WARNINGS or ERRORS! This ia a success... +) ELSE ( +@echo However have %TMPCNT3% WARNINGS or ERRORS! This is a FAILURE... +) + +@goto END + +:CNTIT +@if "%~1x" == "x" goto :EOF +@set /A TMPCNT1+=1 +@goto :EOF + +:DOONE +@if "%~1x" == "x" goto :EOF +@set /A TMPCNT2+=1 +@echo %TMPCNT2% of %TMPCNT1%: %1 +@set TMPOUT=%TMPDIR%\%~nx1 +@%TMPEXE% -config %TMPINP% -o %TMPOUT% %1 +@if ERRORLEVEL 1 goto FAILED +@goto :EOF + +:FAILED +@echo The test of %1 FAILED! +@set /A TMPCNT3+=1 +@pause +@goto :EOF + +:NODIR +:NOOUT +@echo Error: Unable to create %TMPDIR%! +@goto END + + +:NOEXE +@echo Unable to find/run exe %TMPEXE%! *** FIX ME *** +@echo Set the name of the 'tidy' executable to use... +@goto END + +:NOINP +@echo Error: Unable to create config file %TMPINP%! +@goto END + + +:END diff --git a/test/html5/time.org.html b/test/html5/time.org.html new file mode 100644 index 0000000..99394ac --- /dev/null +++ b/test/html5/time.org.html @@ -0,0 +1,16 @@ + + + + +HTML5 time tag + + + +

We open at every morning.

+ +

I have a date on .

+ +

Note: The time element does not render as anything special in any of the major browsers.

+ + + diff --git a/test/html5/video.org.html b/test/html5/video.org.html new file mode 100644 index 0000000..df187fe --- /dev/null +++ b/test/html5/video.org.html @@ -0,0 +1,15 @@ + + + +video tag + + + + + + + diff --git a/test/html5/wbr.org.html b/test/html5/wbr.org.html new file mode 100644 index 0000000..1722dfd --- /dev/null +++ b/test/html5/wbr.org.html @@ -0,0 +1,20 @@ + + + + + + HTML5 wbr tag + + + + + +

Try to shrink the browser window, to view how the very long word in +the paragraph below will break:

+ +

This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongwordthatwillbreakatspecificplaceswhenthebrowserwindowisresized.

+ +

Note: The wbr element is not supported in IE.

+ + +