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

Side by Side Diff: LayoutTests/fast/css/csstext-of-content-string.html

Issue 1090423007: Serialize <string> with double quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 8 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 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <style id='style'> 5 <style id='style'>
6 #A::after { content: 'A'; } 6 #A::after { content: 'A'; }
7 #B::after { content: '\'B\''; } 7 #B::after { content: '\'B\''; }
8 #C::after { content: '\'C\''; } 8 #C::after { content: '\'C\''; }
9 #D::after { content: '\'D\'' url(http://example.com/) 'EFG'; } 9 #D::after { content: '\'D\'' url(http://example.com/) 'EFG'; }
10 </style> 10 </style>
11 </head> 11 </head>
12 <body> 12 <body>
13 <div id='A'></div> 13 <div id='A'></div>
14 <div id='B'></div> 14 <div id='B'></div>
15 <div id='C'></div> 15 <div id='C'></div>
16 <div id='D'></div> 16 <div id='D'></div>
17 <pre id='console'></pre> 17 <pre id='console'></pre>
18 </body> 18 </body>
19 <script> 19 <script>
20 description('Tests if a css text of content value is quoted when the value is st ring.'); 20 description('Tests if a css text of content value is quoted when the value is st ring.');
21 21
22 var style = document.getElementById('style'); 22 var style = document.getElementById('style');
23 shouldBeEqualToString("style.sheet.cssRules[0].cssText", "#A::after { content: ' A'; }"); 23 shouldBeEqualToString("style.sheet.cssRules[0].cssText", "#A::after { content: \ "A\"; }");
24 shouldBeEqualToString("style.sheet.cssRules[1].cssText", "#B::after { content: ' \\'B\\''; }"); 24 shouldBeEqualToString("style.sheet.cssRules[1].cssText", "#B::after { content: \ "'B'\"; }");
25 shouldBeEqualToString("style.sheet.cssRules[2].cssText", "#C::after { content: ' \\'C\\8\\''; }"); 25 shouldBeEqualToString("style.sheet.cssRules[2].cssText", "#C::after { content: \ "'C\\8 '\"; }");
26 shouldBeEqualToString("style.sheet.cssRules[3].cssText", "#D::after { content: ' \\'D\\'' url(http://example.com/) 'EFG'; }"); 26 shouldBeEqualToString("style.sheet.cssRules[3].cssText", "#D::after { content: \ "'D'\" url(http://example.com/) \"EFG\"; }");
27 </script> 27 </script>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/content-property-serialization.html ('k') | LayoutTests/fast/css/csstext-of-content-string-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698