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

Side by Side Diff: LayoutTests/http/tests/misc/extract-http-content-language-multiple.php

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 <?php 1 <?php
2 header("Content-Language: fr \t , fi "); 2 header("Content-Language: fr \t , fi ");
3 ?> 3 ?>
4 <!DOCTYPE html> 4 <!DOCTYPE html>
5 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head> 6 <head>
7 <script src="../../js-test-resources/js-test.js"></script> 7 <script src="../../js-test-resources/js-test.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a >: 10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a >:
11 Extract HTTP Content-Language header.</p> 11 Extract HTTP Content-Language header.</p>
12 <div id="console"></div> 12 <div id="console"></div>
13 <div id="x"></div> 13 <div id="x"></div>
14 <div id="y" lang="ar"></div> 14 <div id="y" lang="ar"></div>
15 <script> 15 <script>
16 debug('==> Value extracted singly from HTTP "Content-Language" header...'); 16 debug('==> Value extracted singly from HTTP "Content-Language" header...');
17 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale', '"\'fr\'"') 17 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale', "'\"fr\"'")
18 debug('==> Value set by div "lang" tag...'); 18 debug('==> Value set by div "lang" tag...');
19 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale', '"\'ar\'"') 19 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale', "'\"ar\"'")
20 debug('==> All done...'); 20 debug('==> All done...');
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698