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

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

Issue 973623002: Fix serialization of content property to always quote (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add another method Created 5 years, 9 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: zh-CN"); 2 header("Content-Language: zh-CN");
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 <meta http-equiv="content-language" content="en-GB"> 7 <meta http-equiv="content-language" content="en-GB">
8 <script src="../../js-test-resources/js-test.js"></script> 8 <script src="../../js-test-resources/js-test.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a >: 11 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a >:
12 Extract HTTP Content-Language header.</p> 12 Extract HTTP Content-Language header.</p>
13 <div id="console"></div> 13 <div id="console"></div>
14 <div id="x"></div> 14 <div id="x"></div>
15 <div id="y" lang="ar"></div> 15 <div id="y" lang="ar"></div>
16 <script> 16 <script>
17 debug('==> Value extracted from meta "http-equiv" and overriding HTTP "Content -Language"...'); 17 debug('==> Value extracted from meta "http-equiv" and overriding HTTP "Content -Language"...');
18 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale', '"en-GB"') 18 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale', '"\'en-GB\'"')
19 debug('==> Value set by div "lang" tag...'); 19 debug('==> Value set by div "lang" tag...');
20 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale', '"ar"') 20 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale', '"\'ar\'"')
21 debug('==> All done...'); 21 debug('==> All done...');
22 </script> 22 </script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698