Images

Background:

Stylesheet

Inline style

Links:

Name URL Expected Behavior:
examples (from RFC)
A brief note
"Larry" image
Greek characters

launch helper app
"A brief note"
Image of Larry Masinter
Greek sample text "Έχώ"

hypothetical helper app
scheme only
data:
no data, no error.
data w/o data segment
data:,
data:text/plain,

data:;base64,

no data, no error.

data w/o leading comma
data:test
<mediatype> errors ignored.
data w/ traditionally reserved chaacters like ";"
data:,;test
reserved characters";" treated as *urlchar
need to add testcase w/ other typically reserved characters.
data w/ unneeded ";"
data:;,test
empty base64 and media type, ";" ignored.
default mediatype w/ default character set
data:text/plain,test
data:text/plain;charset=US-ASCII,test
both should return "test"
invalid character set
data:;charset=UTF-8,Hello
invalid character sets are ignored.
multiple commas
data:,a,b confirm parser takes data segment from first ","
base64
data:;base64 , data:;base64,
data:;base64,hello
data:text/html;base64,VGhpcyBpcyBhIHRlc3QK
empty base64 data ingnored.
incorrectly encoded base64 data ignored.
"This is a test"
all options
data:text/plain;charset=thing;base64;test
no error, no data
empty charset
data:;charset=,test
null characters ignored.
UTF8


combinations
use this test suite

Common media types

text/html
HTML in base6
<html><head><title>Test</title></head>
<body><p>This is a test</body></html>
png
small box
white square box
mp3
(URL too long)
play (or download) small mp3 file
XUL
testcase "This works"
SVG
testcase "This works"
User Interface testing


URL bar escaping
data:,foo bar
URL bar should escape URL before rendering.
Test cases From Mozilla Archive