Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/inspector-support/cssURLQuotes.html

Issue 1363233003: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interpolation tests Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698