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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/dom/elements/global-attributes/the-lang-attribute-009.html

Issue 2020943002: update-w3c-deps: Do not modify testharness tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 lang="" > 2 <html lang="" >
3 <head> 3 <head>
4 <meta charset="utf-8"/> 4 <meta charset="utf-8"/>
5 <title>lang="" vs HTTP</title> 5 <title>lang="" vs HTTP</title>
6 <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'> 6 <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
7 <link rel='help' href='https://html.spec.whatwg.org/multipage/#the-lang-and-xml: lang-attributes'> 7 <link rel='help' href='https://html.spec.whatwg.org/multipage/#the-lang-and-xml: lang-attributes'>
8 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script> 9 <script src="/resources/testharnessreport.js"></script>
10 <meta name='flags' content='http dom'> 10 <meta name='flags' content='http dom'>
11 <style type='text/css'> 11 <style type='text/css'>
12 #colonlangcontroltest { color: red; font-weight: bold; width: 400px; } 12 #colonlangcontroltest { color: red; font-weight: bold; width: 400px; }
13 #colonlangcontroltest:lang(xx) { display:none; } 13 #colonlangcontroltest:lang(xx) { display:none; }
14 .test div { width: 50px; } 14 .test div { width: 50px; }
15 #box:lang(ko) { width: 100px; } 15 #box:lang(ko) { width: 100px; }
16 </style> 16 </style>
17 </head> 17 </head>
18 <body> 18 <body>
19 19
20 20
21 21
22 <div class="test"><div id="box">&#xA0;</div></div> 22 <div class="test"><div id="box">&#xA0;</div></div>
23 <p lang='xx' id='colonlangcontroltest'>This test failed because it relies on :la ng for results, but :lang is not supported by this browser.</p> 23 <p lang='xx' id='colonlangcontroltest'>This test failed because it relies on :la ng for results, but :lang is not supported by this browser.</p>
24 24
25 25
26 <!-- Notes: 26 <!--Notes:
27 27
28 This test uses :lang to detect whether the language has been set. If :lang is no t supported, a message will appear and the test will fail. 28 This test uses :lang to detect whether the language has been set. If :lang is no t supported, a message will appear and the test will fail.
29 29
30 --> 30 -->
31 <script> 31 <script>
32 test(function() { 32 test(function() {
33 assert_equals(document.getElementById('colonlangcontroltest').offsetWidth, 0) 33 assert_equals(document.getElementById('colonlangcontroltest').offsetWidth, 0)
34 assert_equals(document.getElementById('box').offsetWidth, 50); 34 assert_equals(document.getElementById('box').offsetWidth, 50);
35 }, "If the HTTP header contains a language declaration but the html element uses an empty lang value, the UA will not recognize the language declared in the HTT P header."); 35 }, "If the HTTP header contains a language declaration but the html element uses an empty lang value, the UA will not recognize the language declared in the HTT P header.");
36 </script> 36 </script>
37 37
38 <div id='log'></div> 38 <div id='log'></div>
39 39
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698