1 <div id=
"testUnquoted" style=
"background-image: url(file:///unquoted)"></div>
2 <div id=
"testNoQuotesNeeded" style=
"background-image: url('file:///noQuotesNeeded')"></div>
3 <div id=
"testShouldQuote" style=
"background-image: url('file:///should(Quote)')"></div>
5 function test(id
, reason
) {
6 alert(document
.getElementById(id
).style
.getPropertyValue("background-image") + " (" + reason
+ ")");
9 testRunner
.dumpAsText();
10 test("testUnquoted", "URL should not be quoted");
11 test("testNoQuotesNeeded", "URL should not be quoted");
12 test("testShouldQuote", "URL should be quoted");