This is a boring test.
9 | 10 | 11 | -------------------------------------------------------------------------------- /html5validator/tests/config_files/angularjs.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/angularjs/ 2 | ignore_re: 3 | - 'Attribute “ng-[a-z-]+” not allowed' -------------------------------------------------------------------------------- /html5validator/tests/config_files/angularjs_normal.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/angularjs/ 2 | ignore_re: 3 | - 'Attribute "ng-[a-z-]+" not allowed' -------------------------------------------------------------------------------- /html5validator/tests/config_files/extra.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | vnu: 3 | - "--hello world" -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/gnu_invalid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | format: gnu -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/gnu_valid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | format: gnu -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/json_invalid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | format: json -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/json_valid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | format: json -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/text_invalid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | format: text -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/text_valid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | format: text -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/xml_invalid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | format: xml -------------------------------------------------------------------------------- /html5validator/tests/config_files/format_flags/xml_valid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | format: xml -------------------------------------------------------------------------------- /html5validator/tests/config_files/ignore_and_ignorere.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/multiple_ignores/ 2 | ignore_re: 3 | - 'Attribute “ng-[a-z-]+” not allowed' 4 | ignore: 5 | - 'Start tag seen without seeing a doctype first' -------------------------------------------------------------------------------- /html5validator/tests/config_files/invalid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ -------------------------------------------------------------------------------- /html5validator/tests/config_files/invalid_css.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | match: 3 | - "*.html" 4 | - "*.css" -------------------------------------------------------------------------------- /html5validator/tests/config_files/invalid_css_only.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | match: 3 | - "*.css" -------------------------------------------------------------------------------- /html5validator/tests/config_files/invalid_single_file.yaml: -------------------------------------------------------------------------------- 1 | files: 2 | - ./html5validator/tests/invalid/index.html 3 | -------------------------------------------------------------------------------- /html5validator/tests/config_files/log_file.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | log_file: test_config 3 | log: DEBUG -------------------------------------------------------------------------------- /html5validator/tests/config_files/multiple_ignores.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/multiple_ignores/ 2 | ignore_re: 3 | - 'Attribute “ng-[a-z-]+” not allowed' 4 | - 'Start tag seen without seeing a doctype first' -------------------------------------------------------------------------------- /html5validator/tests/config_files/no_files.yaml: -------------------------------------------------------------------------------- 1 | root: MISSING -------------------------------------------------------------------------------- /html5validator/tests/config_files/return_254.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/return_value/ 2 | match: 3 | - "254.html" -------------------------------------------------------------------------------- /html5validator/tests/config_files/return_255.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/return_value/ 2 | match: 3 | - "255.html" -------------------------------------------------------------------------------- /html5validator/tests/config_files/return_255_256.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/return_value/ 2 | match: 3 | - "256.html" -------------------------------------------------------------------------------- /html5validator/tests/config_files/skip.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/invalid/ 2 | blacklist: 3 | - "index.html" 4 | match: 5 | - "*.html" 6 | - "*.css" -------------------------------------------------------------------------------- /html5validator/tests/config_files/stack_size.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | stack_size: 32768 -------------------------------------------------------------------------------- /html5validator/tests/config_files/valid.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/valid/ 2 | -------------------------------------------------------------------------------- /html5validator/tests/config_files/warning.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/warning 2 | errors_only: False -------------------------------------------------------------------------------- /html5validator/tests/config_files/warning_pass.yaml: -------------------------------------------------------------------------------- 1 | root: ./html5validator/tests/warning 2 | -------------------------------------------------------------------------------- /html5validator/tests/invalid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |This is a boring test.
8 | 9 | -------------------------------------------------------------------------------- /html5validator/tests/invalid/style.css: -------------------------------------------------------------------------------- 1 | p { maxwidth: 60em; } 2 | -------------------------------------------------------------------------------- /html5validator/tests/multiple_ignores/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |This is a boring test.
8 | 9 | 10 | -------------------------------------------------------------------------------- /html5validator/tests/return_value/254.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |This is a boring test.> 9 |
This is a boring test.> 10 |
This is a boring test.> 11 |
This is a boring test.> 12 |
This is a boring test.> 13 |
This is a boring test.> 14 |
This is a boring test.> 15 |
This is a boring test.> 16 |
This is a boring test.> 17 |
This is a boring test.> 18 |
This is a boring test.> 19 |
This is a boring test.> 20 |
This is a boring test.> 21 |
This is a boring test.> 22 |
This is a boring test.> 23 |
This is a boring test.> 24 |
This is a boring test.> 25 |
This is a boring test.> 26 |
This is a boring test.> 27 |
This is a boring test.> 28 |
This is a boring test.> 29 |
This is a boring test.> 30 |
This is a boring test.> 31 |
This is a boring test.> 32 |
This is a boring test.> 33 |
This is a boring test.> 34 |
This is a boring test.> 35 |
This is a boring test.> 36 |
This is a boring test.> 37 |
This is a boring test.> 38 |
This is a boring test.> 39 |
This is a boring test.> 40 |
This is a boring test.> 41 |
This is a boring test.> 42 |
This is a boring test.> 43 |
This is a boring test.> 44 |
This is a boring test.> 45 |
This is a boring test.> 46 |
This is a boring test.> 47 |
This is a boring test.> 48 |
This is a boring test.> 49 |
This is a boring test.> 50 |
This is a boring test.> 51 |
This is a boring test.> 52 |
This is a boring test.> 53 |
This is a boring test.> 54 |
This is a boring test.> 55 |
This is a boring test.> 56 |
This is a boring test.> 57 |
This is a boring test.> 58 |
This is a boring test.> 59 |
This is a boring test.> 60 |
This is a boring test.> 61 |
This is a boring test.> 62 |
This is a boring test.> 63 |
This is a boring test.> 64 |
This is a boring test.> 65 |
This is a boring test.> 66 |
This is a boring test.> 67 |
This is a boring test.> 68 |
This is a boring test.> 69 |
This is a boring test.> 70 |
This is a boring test.> 71 |
This is a boring test.> 72 |
This is a boring test.> 73 |
This is a boring test.> 74 |
This is a boring test.> 75 |
This is a boring test.> 76 |
This is a boring test.> 77 |
This is a boring test.> 78 |
This is a boring test.> 79 |
This is a boring test.> 80 |
This is a boring test.> 81 |
This is a boring test.> 82 |
This is a boring test.> 83 |
This is a boring test.> 84 |
This is a boring test.> 85 |
This is a boring test.> 86 |
This is a boring test.> 87 |
This is a boring test.> 88 |
This is a boring test.> 89 |
This is a boring test.> 90 |
This is a boring test.> 91 |
This is a boring test.> 92 |
This is a boring test.> 93 |
This is a boring test.> 94 |
This is a boring test.> 95 |
This is a boring test.> 96 |
This is a boring test.> 97 |
This is a boring test.> 98 |
This is a boring test.> 99 |
This is a boring test.> 100 |
This is a boring test.> 101 |
This is a boring test.> 102 |
This is a boring test.> 103 |
This is a boring test.> 104 |
This is a boring test.> 105 |
This is a boring test.> 106 |
This is a boring test.> 107 |
This is a boring test.> 108 |
This is a boring test.> 109 |
This is a boring test.> 110 |
This is a boring test.> 111 |
This is a boring test.> 112 |
This is a boring test.> 113 |
This is a boring test.> 114 |
This is a boring test.> 115 |
This is a boring test.> 116 |
This is a boring test.> 117 |
This is a boring test.> 118 |
This is a boring test.> 119 |
This is a boring test.> 120 |
This is a boring test.> 121 |
This is a boring test.> 122 |
This is a boring test.> 123 |
This is a boring test.> 124 |
This is a boring test.> 125 |
This is a boring test.> 126 |
This is a boring test.> 127 |
This is a boring test.> 128 |
This is a boring test.> 129 |
This is a boring test.> 130 |
This is a boring test.> 131 |
This is a boring test.> 132 |
This is a boring test.> 133 |
This is a boring test.> 134 |
This is a boring test.> 135 |
This is a boring test.> 136 |
This is a boring test.> 137 |
This is a boring test.> 138 |
This is a boring test.> 139 |
This is a boring test.> 140 |
This is a boring test.> 141 |
This is a boring test.> 142 |
This is a boring test.> 143 |
This is a boring test.> 144 |
This is a boring test.> 145 |
This is a boring test.> 146 |
This is a boring test.> 147 |
This is a boring test.> 148 |
This is a boring test.> 149 |
This is a boring test.> 150 |
This is a boring test.> 151 |
This is a boring test.> 152 |
This is a boring test.> 153 |
This is a boring test.> 154 |
This is a boring test.> 155 |
This is a boring test.> 156 |
This is a boring test.> 157 |
This is a boring test.> 158 |
This is a boring test.> 159 |
This is a boring test.> 160 |
This is a boring test.> 161 |
This is a boring test.> 162 |
This is a boring test.> 163 |
This is a boring test.> 164 |
This is a boring test.> 165 |
This is a boring test.> 166 |
This is a boring test.> 167 |
This is a boring test.> 168 |
This is a boring test.> 169 |
This is a boring test.> 170 |
This is a boring test.> 171 |
This is a boring test.> 172 |
This is a boring test.> 173 |
This is a boring test.> 174 |
This is a boring test.> 175 |
This is a boring test.> 176 |
This is a boring test.> 177 |
This is a boring test.> 178 |
This is a boring test.> 179 |
This is a boring test.> 180 |
This is a boring test.> 181 |
This is a boring test.> 182 |
This is a boring test.> 183 |
This is a boring test.> 184 |
This is a boring test.> 185 |
This is a boring test.> 186 |
This is a boring test.> 187 |
This is a boring test.> 188 |
This is a boring test.> 189 |
This is a boring test.> 190 |
This is a boring test.> 191 |
This is a boring test.> 192 |
This is a boring test.> 193 |
This is a boring test.> 194 |
This is a boring test.> 195 |
This is a boring test.> 196 |
This is a boring test.> 197 |
This is a boring test.> 198 |
This is a boring test.> 199 |
This is a boring test.> 200 |
This is a boring test.> 201 |
This is a boring test.> 202 |
This is a boring test.> 203 |
This is a boring test.> 204 |
This is a boring test.> 205 |
This is a boring test.> 206 |
This is a boring test.> 207 |
This is a boring test.> 208 |
This is a boring test.> 209 |
This is a boring test.> 210 |
This is a boring test.> 211 |
This is a boring test.> 212 |
This is a boring test.> 213 |
This is a boring test.> 214 |
This is a boring test.> 215 |
This is a boring test.> 216 |
This is a boring test.> 217 |
This is a boring test.> 218 |
This is a boring test.> 219 |
This is a boring test.> 220 |
This is a boring test.> 221 |
This is a boring test.> 222 |
This is a boring test.> 223 |
This is a boring test.> 224 |
This is a boring test.> 225 |
This is a boring test.> 226 |
This is a boring test.> 227 |
This is a boring test.> 228 |
This is a boring test.> 229 |
This is a boring test.> 230 |
This is a boring test.> 231 |
This is a boring test.> 232 |
This is a boring test.> 233 |
This is a boring test.> 234 |
This is a boring test.> 235 |
This is a boring test.> 236 |
This is a boring test.> 237 |
This is a boring test.> 238 |
This is a boring test.> 239 |
This is a boring test.> 240 |
This is a boring test.> 241 |
This is a boring test.> 242 |
This is a boring test.> 243 |
This is a boring test.> 244 |
This is a boring test.> 245 |
This is a boring test.> 246 |
This is a boring test.> 247 |
This is a boring test.> 248 |
This is a boring test.> 249 |
This is a boring test.> 250 |
This is a boring test.> 251 |
This is a boring test.> 252 |
This is a boring test.> 253 |
This is a boring test.> 254 |
This is a boring test.> 255 |
This is a boring test.> 256 |
This is a boring test.> 257 |
This is a boring test.> 258 |
This is a boring test.> 259 |
This is a boring test.> 260 |
This is a boring test.> 261 |
This is a boring test.> 262 | 263 | 264 | -------------------------------------------------------------------------------- /html5validator/tests/return_value/255.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |This is a boring test.> 9 |
This is a boring test.> 10 |
This is a boring test.> 11 |
This is a boring test.> 12 |
This is a boring test.> 13 |
This is a boring test.> 14 |
This is a boring test.> 15 |
This is a boring test.> 16 |
This is a boring test.> 17 |
This is a boring test.> 18 |
This is a boring test.> 19 |
This is a boring test.> 20 |
This is a boring test.> 21 |
This is a boring test.> 22 |
This is a boring test.> 23 |
This is a boring test.> 24 |
This is a boring test.> 25 |
This is a boring test.> 26 |
This is a boring test.> 27 |
This is a boring test.> 28 |
This is a boring test.> 29 |
This is a boring test.> 30 |
This is a boring test.> 31 |
This is a boring test.> 32 |
This is a boring test.> 33 |
This is a boring test.> 34 |
This is a boring test.> 35 |
This is a boring test.> 36 |
This is a boring test.> 37 |
This is a boring test.> 38 |
This is a boring test.> 39 |
This is a boring test.> 40 |
This is a boring test.> 41 |
This is a boring test.> 42 |
This is a boring test.> 43 |
This is a boring test.> 44 |
This is a boring test.> 45 |
This is a boring test.> 46 |
This is a boring test.> 47 |
This is a boring test.> 48 |
This is a boring test.> 49 |
This is a boring test.> 50 |
This is a boring test.> 51 |
This is a boring test.> 52 |
This is a boring test.> 53 |
This is a boring test.> 54 |
This is a boring test.> 55 |
This is a boring test.> 56 |
This is a boring test.> 57 |
This is a boring test.> 58 |
This is a boring test.> 59 |
This is a boring test.> 60 |
This is a boring test.> 61 |
This is a boring test.> 62 |
This is a boring test.> 63 |
This is a boring test.> 64 |
This is a boring test.> 65 |
This is a boring test.> 66 |
This is a boring test.> 67 |
This is a boring test.> 68 |
This is a boring test.> 69 |
This is a boring test.> 70 |
This is a boring test.> 71 |
This is a boring test.> 72 |
This is a boring test.> 73 |
This is a boring test.> 74 |
This is a boring test.> 75 |
This is a boring test.> 76 |
This is a boring test.> 77 |
This is a boring test.> 78 |
This is a boring test.> 79 |
This is a boring test.> 80 |
This is a boring test.> 81 |
This is a boring test.> 82 |
This is a boring test.> 83 |
This is a boring test.> 84 |
This is a boring test.> 85 |
This is a boring test.> 86 |
This is a boring test.> 87 |
This is a boring test.> 88 |
This is a boring test.> 89 |
This is a boring test.> 90 |
This is a boring test.> 91 |
This is a boring test.> 92 |
This is a boring test.> 93 |
This is a boring test.> 94 |
This is a boring test.> 95 |
This is a boring test.> 96 |
This is a boring test.> 97 |
This is a boring test.> 98 |
This is a boring test.> 99 |
This is a boring test.> 100 |
This is a boring test.> 101 |
This is a boring test.> 102 |
This is a boring test.> 103 |
This is a boring test.> 104 |
This is a boring test.> 105 |
This is a boring test.> 106 |
This is a boring test.> 107 |
This is a boring test.> 108 |
This is a boring test.> 109 |
This is a boring test.> 110 |
This is a boring test.> 111 |
This is a boring test.> 112 |
This is a boring test.> 113 |
This is a boring test.> 114 |
This is a boring test.> 115 |
This is a boring test.> 116 |
This is a boring test.> 117 |
This is a boring test.> 118 |
This is a boring test.> 119 |
This is a boring test.> 120 |
This is a boring test.> 121 |
This is a boring test.> 122 |
This is a boring test.> 123 |
This is a boring test.> 124 |
This is a boring test.> 125 |
This is a boring test.> 126 |
This is a boring test.> 127 |
This is a boring test.> 128 |
This is a boring test.> 129 |
This is a boring test.> 130 |
This is a boring test.> 131 |
This is a boring test.> 132 |
This is a boring test.> 133 |
This is a boring test.> 134 |
This is a boring test.> 135 |
This is a boring test.> 136 |
This is a boring test.> 137 |
This is a boring test.> 138 |
This is a boring test.> 139 |
This is a boring test.> 140 |
This is a boring test.> 141 |
This is a boring test.> 142 |
This is a boring test.> 143 |
This is a boring test.> 144 |
This is a boring test.> 145 |
This is a boring test.> 146 |
This is a boring test.> 147 |
This is a boring test.> 148 |
This is a boring test.> 149 |
This is a boring test.> 150 |
This is a boring test.> 151 |
This is a boring test.> 152 |
This is a boring test.> 153 |
This is a boring test.> 154 |
This is a boring test.> 155 |
This is a boring test.> 156 |
This is a boring test.> 157 |
This is a boring test.> 158 |
This is a boring test.> 159 |
This is a boring test.> 160 |
This is a boring test.> 161 |
This is a boring test.> 162 |
This is a boring test.> 163 |
This is a boring test.> 164 |
This is a boring test.> 165 |
This is a boring test.> 166 |
This is a boring test.> 167 |
This is a boring test.> 168 |
This is a boring test.> 169 |
This is a boring test.> 170 |
This is a boring test.> 171 |
This is a boring test.> 172 |
This is a boring test.> 173 |
This is a boring test.> 174 |
This is a boring test.> 175 |
This is a boring test.> 176 |
This is a boring test.> 177 |
This is a boring test.> 178 |
This is a boring test.> 179 |
This is a boring test.> 180 |
This is a boring test.> 181 |
This is a boring test.> 182 |
This is a boring test.> 183 |
This is a boring test.> 184 |
This is a boring test.> 185 |
This is a boring test.> 186 |
This is a boring test.> 187 |
This is a boring test.> 188 |
This is a boring test.> 189 |
This is a boring test.> 190 |
This is a boring test.> 191 |
This is a boring test.> 192 |
This is a boring test.> 193 |
This is a boring test.> 194 |
This is a boring test.> 195 |
This is a boring test.> 196 |
This is a boring test.> 197 |
This is a boring test.> 198 |
This is a boring test.> 199 |
This is a boring test.> 200 |
This is a boring test.> 201 |
This is a boring test.> 202 |
This is a boring test.> 203 |
This is a boring test.> 204 |
This is a boring test.> 205 |
This is a boring test.> 206 |
This is a boring test.> 207 |
This is a boring test.> 208 |
This is a boring test.> 209 |
This is a boring test.> 210 |
This is a boring test.> 211 |
This is a boring test.> 212 |
This is a boring test.> 213 |
This is a boring test.> 214 |
This is a boring test.> 215 |
This is a boring test.> 216 |
This is a boring test.> 217 |
This is a boring test.> 218 |
This is a boring test.> 219 |
This is a boring test.> 220 |
This is a boring test.> 221 |
This is a boring test.> 222 |
This is a boring test.> 223 |
This is a boring test.> 224 |
This is a boring test.> 225 |
This is a boring test.> 226 |
This is a boring test.> 227 |
This is a boring test.> 228 |
This is a boring test.> 229 |
This is a boring test.> 230 |
This is a boring test.> 231 |
This is a boring test.> 232 |
This is a boring test.> 233 |
This is a boring test.> 234 |
This is a boring test.> 235 |
This is a boring test.> 236 |
This is a boring test.> 237 |
This is a boring test.> 238 |
This is a boring test.> 239 |
This is a boring test.> 240 |
This is a boring test.> 241 |
This is a boring test.> 242 |
This is a boring test.> 243 |
This is a boring test.> 244 |
This is a boring test.> 245 |
This is a boring test.> 246 |
This is a boring test.> 247 |
This is a boring test.> 248 |
This is a boring test.> 249 |
This is a boring test.> 250 |
This is a boring test.> 251 |
This is a boring test.> 252 |
This is a boring test.> 253 |
This is a boring test.> 254 |
This is a boring test.> 255 |
This is a boring test.> 256 |
This is a boring test.> 257 |
This is a boring test.> 258 |
This is a boring test.> 259 |
This is a boring test.> 260 |
This is a boring test.> 261 |
This is a boring test.> 262 |
This is a boring test.> 263 | 264 | 265 | -------------------------------------------------------------------------------- /html5validator/tests/return_value/256.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |This is a boring test.> 9 |
This is a boring test.> 10 |
This is a boring test.> 11 |
This is a boring test.> 12 |
This is a boring test.> 13 |
This is a boring test.> 14 |
This is a boring test.> 15 |
This is a boring test.> 16 |
This is a boring test.> 17 |
This is a boring test.> 18 |
This is a boring test.> 19 |
This is a boring test.> 20 |
This is a boring test.> 21 |
This is a boring test.> 22 |
This is a boring test.> 23 |
This is a boring test.> 24 |
This is a boring test.> 25 |
This is a boring test.> 26 |
This is a boring test.> 27 |
This is a boring test.> 28 |
This is a boring test.> 29 |
This is a boring test.> 30 |
This is a boring test.> 31 |
This is a boring test.> 32 |
This is a boring test.> 33 |
This is a boring test.> 34 |
This is a boring test.> 35 |
This is a boring test.> 36 |
This is a boring test.> 37 |
This is a boring test.> 38 |
This is a boring test.> 39 |
This is a boring test.> 40 |
This is a boring test.> 41 |
This is a boring test.> 42 |
This is a boring test.> 43 |
This is a boring test.> 44 |
This is a boring test.> 45 |
This is a boring test.> 46 |
This is a boring test.> 47 |
This is a boring test.> 48 |
This is a boring test.> 49 |
This is a boring test.> 50 |
This is a boring test.> 51 |
This is a boring test.> 52 |
This is a boring test.> 53 |
This is a boring test.> 54 |
This is a boring test.> 55 |
This is a boring test.> 56 |
This is a boring test.> 57 |
This is a boring test.> 58 |
This is a boring test.> 59 |
This is a boring test.> 60 |
This is a boring test.> 61 |
This is a boring test.> 62 |
This is a boring test.> 63 |
This is a boring test.> 64 |
This is a boring test.> 65 |
This is a boring test.> 66 |
This is a boring test.> 67 |
This is a boring test.> 68 |
This is a boring test.> 69 |
This is a boring test.> 70 |
This is a boring test.> 71 |
This is a boring test.> 72 |
This is a boring test.> 73 |
This is a boring test.> 74 |
This is a boring test.> 75 |
This is a boring test.> 76 |
This is a boring test.> 77 |
This is a boring test.> 78 |
This is a boring test.> 79 |
This is a boring test.> 80 |
This is a boring test.> 81 |
This is a boring test.> 82 |
This is a boring test.> 83 |
This is a boring test.> 84 |
This is a boring test.> 85 |
This is a boring test.> 86 |
This is a boring test.> 87 |
This is a boring test.> 88 |
This is a boring test.> 89 |
This is a boring test.> 90 |
This is a boring test.> 91 |
This is a boring test.> 92 |
This is a boring test.> 93 |
This is a boring test.> 94 |
This is a boring test.> 95 |
This is a boring test.> 96 |
This is a boring test.> 97 |
This is a boring test.> 98 |
This is a boring test.> 99 |
This is a boring test.> 100 |
This is a boring test.> 101 |
This is a boring test.> 102 |
This is a boring test.> 103 |
This is a boring test.> 104 |
This is a boring test.> 105 |
This is a boring test.> 106 |
This is a boring test.> 107 |
This is a boring test.> 108 |
This is a boring test.> 109 |
This is a boring test.> 110 |
This is a boring test.> 111 |
This is a boring test.> 112 |
This is a boring test.> 113 |
This is a boring test.> 114 |
This is a boring test.> 115 |
This is a boring test.> 116 |
This is a boring test.> 117 |
This is a boring test.> 118 |
This is a boring test.> 119 |
This is a boring test.> 120 |
This is a boring test.> 121 |
This is a boring test.> 122 |
This is a boring test.> 123 |
This is a boring test.> 124 |
This is a boring test.> 125 |
This is a boring test.> 126 |
This is a boring test.> 127 |
This is a boring test.> 128 |
This is a boring test.> 129 |
This is a boring test.> 130 |
This is a boring test.> 131 |
This is a boring test.> 132 |
This is a boring test.> 133 |
This is a boring test.> 134 |
This is a boring test.> 135 |
This is a boring test.> 136 |
This is a boring test.> 137 |
This is a boring test.> 138 |
This is a boring test.> 139 |
This is a boring test.> 140 |
This is a boring test.> 141 |
This is a boring test.> 142 |
This is a boring test.> 143 |
This is a boring test.> 144 |
This is a boring test.> 145 |
This is a boring test.> 146 |
This is a boring test.> 147 |
This is a boring test.> 148 |
This is a boring test.> 149 |
This is a boring test.> 150 |
This is a boring test.> 151 |
This is a boring test.> 152 |
This is a boring test.> 153 |
This is a boring test.> 154 |
This is a boring test.> 155 |
This is a boring test.> 156 |
This is a boring test.> 157 |
This is a boring test.> 158 |
This is a boring test.> 159 |
This is a boring test.> 160 |
This is a boring test.> 161 |
This is a boring test.> 162 |
This is a boring test.> 163 |
This is a boring test.> 164 |
This is a boring test.> 165 |
This is a boring test.> 166 |
This is a boring test.> 167 |
This is a boring test.> 168 |
This is a boring test.> 169 |
This is a boring test.> 170 |
This is a boring test.> 171 |
This is a boring test.> 172 |
This is a boring test.> 173 |
This is a boring test.> 174 |
This is a boring test.> 175 |
This is a boring test.> 176 |
This is a boring test.> 177 |
This is a boring test.> 178 |
This is a boring test.> 179 |
This is a boring test.> 180 |
This is a boring test.> 181 |
This is a boring test.> 182 |
This is a boring test.> 183 |
This is a boring test.> 184 |
This is a boring test.> 185 |
This is a boring test.> 186 |
This is a boring test.> 187 |
This is a boring test.> 188 |
This is a boring test.> 189 |
This is a boring test.> 190 |
This is a boring test.> 191 |
This is a boring test.> 192 |
This is a boring test.> 193 |
This is a boring test.> 194 |
This is a boring test.> 195 |
This is a boring test.> 196 |
This is a boring test.> 197 |
This is a boring test.> 198 |
This is a boring test.> 199 |
This is a boring test.> 200 |
This is a boring test.> 201 |
This is a boring test.> 202 |
This is a boring test.> 203 |
This is a boring test.> 204 |
This is a boring test.> 205 |
This is a boring test.> 206 |
This is a boring test.> 207 |
This is a boring test.> 208 |
This is a boring test.> 209 |
This is a boring test.> 210 |
This is a boring test.> 211 |
This is a boring test.> 212 |
This is a boring test.> 213 |
This is a boring test.> 214 |
This is a boring test.> 215 |
This is a boring test.> 216 |
This is a boring test.> 217 |
This is a boring test.> 218 |
This is a boring test.> 219 |
This is a boring test.> 220 |
This is a boring test.> 221 |
This is a boring test.> 222 |
This is a boring test.> 223 |
This is a boring test.> 224 |
This is a boring test.> 225 |
This is a boring test.> 226 |
This is a boring test.> 227 |
This is a boring test.> 228 |
This is a boring test.> 229 |
This is a boring test.> 230 |
This is a boring test.> 231 |
This is a boring test.> 232 |
This is a boring test.> 233 |
This is a boring test.> 234 |
This is a boring test.> 235 |
This is a boring test.> 236 |
This is a boring test.> 237 |
This is a boring test.> 238 |
This is a boring test.> 239 |
This is a boring test.> 240 |
This is a boring test.> 241 |
This is a boring test.> 242 |
This is a boring test.> 243 |
This is a boring test.> 244 |
This is a boring test.> 245 |
This is a boring test.> 246 |
This is a boring test.> 247 |
This is a boring test.> 248 |
This is a boring test.> 249 |
This is a boring test.> 250 |
This is a boring test.> 251 |
This is a boring test.> 252 |
This is a boring test.> 253 |
This is a boring test.> 254 |
This is a boring test.> 255 |
This is a boring test.> 256 |
This is a boring test.> 257 |
This is a boring test.> 258 |
This is a boring test.> 259 |
This is a boring test.> 260 |
This is a boring test.> 261 |
This is a boring test.> 262 |
This is a boring test.> 263 |
This is a boring test.> 264 | 265 | 266 | -------------------------------------------------------------------------------- /html5validator/tests/test_config.py: -------------------------------------------------------------------------------- 1 | """Do an integration test for config file usage.""" 2 | 3 | import os 4 | import subprocess 5 | 6 | HTML_TEST_FILES = os.path.abspath(os.path.dirname(__file__)) 7 | 8 | 9 | def test_config_valid(): 10 | """Config test for valid HTML""" 11 | assert subprocess.call([ 12 | 'html5validator', 13 | f'--config={HTML_TEST_FILES}/config_files/valid.yaml']) == 0 14 | 15 | 16 | def test_config_invalid(): 17 | """Config test for invalid HTML""" 18 | assert subprocess.call([ 19 | 'html5validator', 20 | f'--config={HTML_TEST_FILES}/config_files/invalid.yaml']) == 1 21 | 22 | 23 | def test_config_skip(): 24 | """Config test for skipping files""" 25 | assert subprocess.call([ 26 | 'html5validator', 27 | f'--config={HTML_TEST_FILES}/config_files/skip.yaml']) == 2 28 | 29 | 30 | def test_config_invalid_with_css(): 31 | """Config test for CSS and HTML""" 32 | assert subprocess.call([ 33 | 'html5validator', 34 | f'--config={HTML_TEST_FILES}/config_files/invalid_css.yaml' 35 | ]) == 3 36 | 37 | 38 | def test_config_invalid_css_only(): 39 | """Config test for CSSS only""" 40 | assert subprocess.call([ 41 | 'html5validator', 42 | f"--config={HTML_TEST_FILES}/config_files/invalid_css_only.yaml"]) == 2 43 | 44 | 45 | def test_config_invalid_single_file(): 46 | """Config test for invalid single file""" 47 | assert subprocess.call([ 48 | 'html5validator', 49 | f"--config={HTML_TEST_FILES}/config_files/invalid_single_file.yaml" 50 | ]) == 1 51 | 52 | 53 | def test_config_warning(): 54 | """Config test for warnings""" 55 | assert subprocess.call([ 56 | 'html5validator', 57 | f"--config={HTML_TEST_FILES}/config_files/warning.yaml"]) == 1 58 | 59 | 60 | def test_config_warning_but_pass(): 61 | """Config test for allowed warnings""" 62 | assert subprocess.call([ 63 | 'html5validator', 64 | f'--config={HTML_TEST_FILES}/config_files/warning_pass.yaml']) == 0 65 | 66 | 67 | def test_config_return_value(): 68 | """Config test for error code return value""" 69 | assert subprocess.call([ 70 | 'html5validator', 71 | f'--config={HTML_TEST_FILES}/config_files/return_254.yaml']) == 254 72 | assert subprocess.call([ 73 | 'html5validator', 74 | f'--config={HTML_TEST_FILES}/config_files/return_255.yaml']) == 255 75 | assert subprocess.call([ 76 | 'html5validator', 77 | f'--config={HTML_TEST_FILES}/config_files/return_255_256.yaml']) == 255 78 | 79 | 80 | def test_config_angularjs(): 81 | """Config test for angularjs""" 82 | assert subprocess.call([ 83 | 'html5validator', 84 | f'--config={HTML_TEST_FILES}/config_files/angularjs.yaml']) == 0 85 | 86 | 87 | def test_config_angularjs_no_output_with_ignore(): 88 | """Make sure there is no spurious output when messages are ignored.""" 89 | assert subprocess.check_output([ 90 | 'html5validator', 91 | f'--config={HTML_TEST_FILES}/config_files/angularjs.yaml']) == b'' 92 | 93 | 94 | def test_config_angularjs_normal_quotes(): 95 | """Config test for normal angularjs""" 96 | assert subprocess.call([ 97 | 'html5validator', 98 | f'--config={HTML_TEST_FILES}/config_files/angularjs_normal.yaml']) == 0 99 | 100 | 101 | def test_config_multiple_ignoreres(): 102 | """Config test for multiple regex ignores""" 103 | assert subprocess.call([ 104 | 'html5validator', 105 | f'--config={HTML_TEST_FILES}/config_files/multiple_ignores.yaml']) == 0 106 | 107 | 108 | def test_config_ignore_and_ignorere(): 109 | """Config test for ignore and regex ignore""" 110 | assert subprocess.call([ 111 | 'html5validator', 112 | f'--config={HTML_TEST_FILES}/config_files/ignore_and_ignorere.yaml' 113 | ]) == 0 114 | 115 | 116 | def test_config_stack_size(): 117 | """Config test for stack size""" 118 | assert subprocess.call([ 119 | 'html5validator', 120 | f'--config={HTML_TEST_FILES}/config_files/stack_size.yaml']) == 0 121 | 122 | 123 | def test_config_valid_format_flags(): 124 | """Config test for output format for valid files""" 125 | assert subprocess.call([ 126 | 'html5validator', 127 | f'--config={HTML_TEST_FILES}/config_files/format_flags/text_valid.yaml' 128 | ]) == 0 129 | assert subprocess.call([ 130 | 'html5validator', 131 | f'--config={HTML_TEST_FILES}/config_files/format_flags/gnu_valid.yaml' 132 | ]) == 0 133 | assert subprocess.call([ 134 | 'html5validator', 135 | f'--config={HTML_TEST_FILES}/config_files/format_flags/json_valid.yaml' 136 | ]) == 0 137 | assert subprocess.call([ 138 | 'html5validator', 139 | f'--config={HTML_TEST_FILES}/config_files/format_flags/xml_valid.yaml' 140 | ]) == 0 141 | 142 | 143 | def test_config_invalid_format_flags(): 144 | """Config test for output format with invalid files""" 145 | assert subprocess.call([ 146 | 'html5validator', 147 | f'--config={HTML_TEST_FILES}/config_files/format_flags/' 148 | 'text_invalid.yaml' 149 | ]) == 3 150 | assert subprocess.call([ 151 | 'html5validator', 152 | f'--config={HTML_TEST_FILES}/config_files/format_flags/' 153 | 'gnu_invalid.yaml' 154 | ]) == 1 155 | assert subprocess.call([ 156 | 'html5validator', 157 | f'--config={HTML_TEST_FILES}/config_files/format_flags/' 158 | 'json_invalid.yaml' 159 | ]) == 1 160 | assert subprocess.call([ 161 | 'html5validator', 162 | f'--config={HTML_TEST_FILES}/config_files/format_flags/' 163 | 'xml_invalid.yaml' 164 | ]) == 8 165 | 166 | 167 | def test_config_log_file(): 168 | """Config test for log file""" 169 | assert subprocess.call([ 170 | 'html5validator', 171 | f'--config={HTML_TEST_FILES}/config_files/log_file.yaml']) == 0 172 | 173 | 174 | def test_config_extra(): 175 | """Config test for vnu extra arguments""" 176 | assert subprocess.call([ 177 | 'html5validator', 178 | f'--config={HTML_TEST_FILES}/config_files/extra.yaml']) == 0 179 | 180 | 181 | def test_config_nofiles(): 182 | """Command line test for missing files""" 183 | assert subprocess.call([ 184 | "html5validator", 185 | f'--config={HTML_TEST_FILES}/config_files/no_files.yaml' 186 | ]) == 1 187 | 188 | 189 | if __name__ == '__main__': 190 | test_config_valid() 191 | test_config_invalid() 192 | test_config_return_value() 193 | test_config_angularjs() 194 | test_config_multiple_ignoreres() 195 | test_config_ignore_and_ignorere() 196 | test_config_stack_size() 197 | test_config_valid_format_flags() 198 | test_config_invalid_format_flags() 199 | test_config_log_file() 200 | test_config_extra() 201 | -------------------------------------------------------------------------------- /html5validator/tests/test_simple.py: -------------------------------------------------------------------------------- 1 | """Do an integration test. Only use simple html files.""" 2 | 3 | import json 4 | import os 5 | import subprocess 6 | 7 | HTML_TEST_FILES = os.path.abspath(os.path.dirname(__file__)) 8 | 9 | 10 | def test_valid(): 11 | """Command line test for valid files""" 12 | assert subprocess.call(['html5validator', 13 | f'--root={HTML_TEST_FILES}/valid/']) == 0 14 | 15 | 16 | def test_invalid(): 17 | """Command line test for invalid files""" 18 | assert subprocess.call(['html5validator', 19 | f'--root={HTML_TEST_FILES}/invalid/']) == 1 20 | 21 | 22 | def test_invalid_with_css(): 23 | """Command line test for invalid CSS and HTML""" 24 | assert subprocess.call([ 25 | 'html5validator', 26 | f'--root={HTML_TEST_FILES}/invalid/', 27 | '--also-check-css', 28 | ]) == 2 29 | 30 | 31 | def test_invalid_css_only(): 32 | """Command line test for invalid CSS only""" 33 | assert subprocess.call([ 34 | 'html5validator', 35 | '--root', f'{HTML_TEST_FILES}/invalid/', 36 | '--skip-non-css', 37 | ]) == 1 38 | 39 | 40 | def test_invalid_single_file(): 41 | """Command line test for invalid single file""" 42 | assert subprocess.call([ 43 | 'html5validator', 44 | f'{HTML_TEST_FILES}/invalid/index.html', 45 | ]) == 1 46 | 47 | 48 | def test_warning(): 49 | """Command line test for warnings""" 50 | assert subprocess.call(['html5validator', 51 | f'--root={HTML_TEST_FILES}/warning/', 52 | '--show-warnings']) == 1 53 | 54 | 55 | def test_warning_but_pass(): 56 | """Command line test for passing warnings""" 57 | assert subprocess.call(['html5validator', 58 | f'--root={HTML_TEST_FILES}/warning/']) == 0 59 | 60 | 61 | def test_return_value(): 62 | """Command line test for error code return value""" 63 | assert subprocess.call(['html5validator', 64 | f'--root={HTML_TEST_FILES}/return_value/', 65 | '--match=254.html']) == 254 66 | assert subprocess.call(['html5validator', 67 | f'--root={HTML_TEST_FILES}/return_value/', 68 | '--match=255.html']) == 255 69 | assert subprocess.call(['html5validator', 70 | f'--root={HTML_TEST_FILES}/return_value/', 71 | '--match=256.html']) == 255 72 | 73 | 74 | def test_angularjs(): 75 | """Command line test for angularjs""" 76 | assert subprocess.call([ 77 | 'html5validator', 78 | f'--root={HTML_TEST_FILES}/angularjs/', 79 | '--ignore-re=Attribute “ng-[a-z-]+” not allowed', 80 | ]) == 0 81 | 82 | 83 | def test_angularjs_no_output_with_ignore(): 84 | """Make sure there is no spurious output when messages are ignored.""" 85 | 86 | output = subprocess.check_output([ 87 | 'html5validator', 88 | f'--root={HTML_TEST_FILES}/angularjs/', 89 | '--ignore-re=Attribute “ng-[a-z-]+” not allowed', 90 | ]) 91 | assert output == b'' 92 | 93 | 94 | def test_angularjs_normal_quotes(): 95 | """Command line test for passing angularjs""" 96 | assert subprocess.call([ 97 | 'html5validator', 98 | f'--root={HTML_TEST_FILES}/angularjs/', 99 | '--ignore-re=Attribute "ng-[a-z-]+" not allowed', 100 | ]) == 0 101 | 102 | 103 | def test_multiple_ignoreres(): 104 | """Command line test for multiple regex ignores""" 105 | assert subprocess.call([ 106 | 'html5validator', 107 | f'--root={HTML_TEST_FILES}/multiple_ignores/', 108 | '--ignore-re', 'Attribute “ng-[a-z-]+” not allowed', 109 | 'Start tag seen without seeing a doctype first', 110 | ]) == 0 111 | 112 | 113 | def test_ignore_and_ignorere(): 114 | """Command line test for ignore and regex ignores""" 115 | assert subprocess.call([ 116 | 'html5validator', 117 | f'--root={HTML_TEST_FILES}/multiple_ignores/', 118 | '--ignore-re', 'Attribute “ng-[a-z-]+” not allowed', 119 | '--ignore', 'Start tag seen without seeing a doctype first', 120 | ]) == 0 121 | 122 | 123 | def test_stack_size(): 124 | """Command line test for stack size""" 125 | assert subprocess.call(['html5validator', 126 | f'--root={HTML_TEST_FILES}/valid/', 127 | '-lll']) == 0 128 | 129 | 130 | def test_valid_format_flags(): 131 | """Command line test for output format for valid files""" 132 | assert subprocess.call(['html5validator', 133 | f'--root={HTML_TEST_FILES}/valid/', 134 | '--format', 'text']) == 0 135 | assert subprocess.call(['html5validator', 136 | f'--root={HTML_TEST_FILES}/valid/', 137 | '--format', 'gnu']) == 0 138 | assert subprocess.call(['html5validator', 139 | f'--root={HTML_TEST_FILES}/valid/', 140 | '--format', 'json']) == 0 141 | assert subprocess.call(['html5validator', 142 | f'--root={HTML_TEST_FILES}/valid/', 143 | '--format', 'xml']) == 0 144 | 145 | 146 | def test_invalid_format_flags(): 147 | """Command line test for output format for invalid files""" 148 | assert subprocess.call(['html5validator', 149 | f'--root={HTML_TEST_FILES}/invalid/', 150 | '--format', 'text']) == 3 151 | assert subprocess.call(['html5validator', 152 | f'--root={HTML_TEST_FILES}/invalid/', 153 | '--format', 'gnu']) == 1 154 | assert subprocess.call(['html5validator', 155 | f'--root={HTML_TEST_FILES}/invalid/', 156 | '--format', 'json']) == 1 157 | assert subprocess.call(['html5validator', 158 | f'--root={HTML_TEST_FILES}/invalid/', 159 | '--format', 'xml']) == 8 160 | 161 | 162 | def test_json_parseable(): 163 | out = subprocess.run(['html5validator', 164 | f'--root={HTML_TEST_FILES}/invalid/', 165 | '--format=json'], stdout=subprocess.PIPE).stdout 166 | assert out 167 | for line in out.decode('utf-8').splitlines(): 168 | print(line) 169 | json.loads(line) 170 | 171 | 172 | def test_log_file(): 173 | """Command line test for log file""" 174 | assert subprocess.call(['html5validator', 175 | f'--root={HTML_TEST_FILES}/valid/', 176 | '--log-file', 'test_command_line', 177 | '--log', 'DEBUG']) == 0 178 | 179 | 180 | def test_skip(): 181 | """Command line test for skipping file""" 182 | assert subprocess.call(['html5validator', 183 | '--blacklist', 'index.html', 184 | '--also-check-css', 185 | f'--root={HTML_TEST_FILES}/invalid/' 186 | ]) == 1 187 | 188 | 189 | def test_nofiles(): 190 | """Command line test for missing files""" 191 | assert subprocess.call([ 192 | "html5validator", "--root=MISSING" 193 | ]) == 1 194 | 195 | 196 | if __name__ == '__main__': 197 | test_valid() 198 | test_invalid() 199 | test_return_value() 200 | test_angularjs() 201 | test_multiple_ignoreres() 202 | test_ignore_and_ignorere() 203 | test_stack_size() 204 | test_valid_format_flags() 205 | test_invalid_format_flags() 206 | test_json_parseable() 207 | test_log_file() 208 | test_skip() 209 | test_nofiles() 210 | -------------------------------------------------------------------------------- /html5validator/tests/valid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |This is a boring test.
9 | 10 | 11 | -------------------------------------------------------------------------------- /html5validator/tests/warning/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |