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

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

Issue 1355263002: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@urlThing161644
Patch Set: Created 5 years, 3 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
« no previous file with comments | « LayoutTests/fast/innerHTML/innerHTML-uri-resolution.html ('k') | LayoutTests/fast/inspector-support/cssURLQuotes-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698