instiki/attic/vendor/plugins/HTML5lib/testdata/validator/draggableattribute.test
Jacques Distler a6429f8c22 Ruby 1.9 Compatibility
Completely removed the html5lib sanitizer.
Fixed the string-handling to work in both
Ruby 1.8.x and 1.9.2. There are still,
inexplicably, two functional tests that
fail. But the rest seems to work quite well.
2009-11-30 16:28:18 -06:00

63 lines
No EOL
2 KiB
Text
Executable file

{"tests": [
{"description": "valid draggable attribute value 'true'",
"input": "<span draggable=true>",
"fail-if": "invalid-attribute-value"},
{"description": "valid draggable attribute value 'TRUE'",
"input": "<span draggable=TRUE>",
"fail-if": "invalid-attribute-value"},
{"description": "valid draggable attribute value 'TrUe'",
"input": "<span draggable=TrUe>",
"fail-if": "invalid-attribute-value"},
{"description": "valid draggable attribute value 'false'",
"input": "<span draggable=false>",
"fail-if": "invalid-attribute-value"},
{"description": "valid draggable attribute value 'FALSE'",
"input": "<span draggable=FALSE>",
"fail-if": "invalid-attribute-value"},
{"description": "valid draggable attribute value 'FalSe'",
"input": "<span draggable=FalSe>",
"fail-if": "invalid-attribute-value"},
{"description": "invalid draggable attribute value ''",
"input": "<span draggable=''>",
"fail-unless": "attribute-value-can-not-be-blank"},
{"description": "valid draggable attribute value (not specified)",
"input": "<span draggable>",
"fail-unless": "attribute-value-can-not-be-blank"},
{"description": "invalid draggable attribute value 'foo'",
"input": "<span draggable=foo>",
"fail-unless": "invalid-enumerated-value"},
{"description": "invalid draggable attribute value '0'",
"input": "<span draggable=0>",
"fail-unless": "invalid-enumerated-value"},
{"description": "invalid draggable attribute value '1'",
"input": "<span draggable=1>",
"fail-unless": "invalid-enumerated-value"},
{"description": "invalid draggable attribute value 'yes'",
"input": "<span draggable=yes>",
"fail-unless": "invalid-enumerated-value"},
{"description": "invalid draggable attribute value 'no'",
"input": "<span draggable=no>",
"fail-unless": "invalid-enumerated-value"},
{"description": "invalid draggable attribute value 'auto'",
"input": "<span draggable=auto>",
"fail-unless": "invalid-enumerated-value"},
{"description": "invalid draggable attribute value 'inherit'",
"input": "<span draggable=inherit>",
"fail-unless": "invalid-enumerated-value"}
]}