| OLD | NEW |
| 1 <div id="testUnquoted" style="background-image: url(file:///unquoted)"></div> | 1 <div id="testQuoted1" style="background-image: url(file:///unquoted)"></div> |
| 2 <div id="testNoQuotesNeeded" style="background-image: url('file:///noQuotesNeede
d')"></div> | 2 <div id="testQuoted2" style="background-image: url('file:///quoted')"></div> |
| 3 <div id="testShouldQuote" style="background-image: url('file:///should(Quote)')"
></div> | 3 <div id="testQuoted3" style="background-image: url('file:///should(Quote)')"></d
iv> |
| 4 <script> | 4 <script> |
| 5 function test(id, reason) { | 5 function test(id, reason) { |
| 6 alert(document.getElementById(id).style.getPropertyValue("background-image")
+ " (" + reason + ")"); | 6 alert(document.getElementById(id).style.getPropertyValue("background-image")
+ " (" + reason + ")"); |
| 7 } | 7 } |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 test("testUnquoted", "URL should not be quoted"); | 10 test("testQuoted1", "URL should be quoted"); |
| 11 test("testNoQuotesNeeded", "URL should not be quoted"); | 11 test("testQuoted2", "URL should be quoted"); |
| 12 test("testShouldQuote", "URL should be quoted"); | 12 test("testQuoted3", "URL should be quoted"); |
| 13 </script> | 13 </script> |
| OLD | NEW |