Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / inspector-support / cssURLQuotes.html
blob5b3dfb299454fe6d0325f8a7a245435dabf18405
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>
4 <script>
5 function test(id, reason) {
6 alert(document.getElementById(id).style.getPropertyValue("background-image") + " (" + reason + ")");
8 if (window.testRunner)
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");
13 </script>