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

Side by Side Diff: LayoutTests/fast/media/w3c/test_media_queries.html

Issue 22414006: Revert "Revert "[css3-text] Implement text-decoration property shorthand"" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added missing skipped test to TestExpectations Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Media Queries Self-Contained Test Suite</title> 4 <title>Media Queries Self-Contained Test Suite</title>
5 <link rel="author" title="L. David Baron" href="http://dbaron.org/"> 5 <link rel="author" title="L. David Baron" href="http://dbaron.org/">
6 <link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/" > 6 <link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/" >
7 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> 7 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
8 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/"> 8 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/">
9 <script type="text/javascript" src="../../../resources/testharness.js"></scrip t> 9 <script type="text/javascript" src="../../../resources/testharness.js"></scrip t>
10 <script type="text/javascript" src="../../../resources/testharnessreport.js">< /script> 10 <script type="text/javascript" src="../../../resources/testharnessreport.js">< /script>
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 function run() { 387 function run() {
388 var subdoc = document.getElementById("subdoc").contentDocument; 388 var subdoc = document.getElementById("subdoc").contentDocument;
389 var subwin = document.getElementById("subdoc").contentWindow; 389 var subwin = document.getElementById("subdoc").contentWindow;
390 var style = subdoc.getElementById("style"); 390 var style = subdoc.getElementById("style");
391 var iframe_style = document.getElementById("subdoc").style; 391 var iframe_style = document.getElementById("subdoc").style;
392 var body_cs = subdoc.defaultView.getComputedStyle(subdoc.body, ""); 392 var body_cs = subdoc.defaultView.getComputedStyle(subdoc.body, "");
393 var testNum = 0; 393 var testNum = 0;
394 394
395 function query_applies(q) { 395 function query_applies(q) {
396 style.setAttribute("media", q); 396 style.setAttribute("media", q);
397 return body_cs.getPropertyValue("text-decoration") == "underline"; 397 return body_cs.getPropertyValue("text-decoration") == "underline solid rgb (0, 0, 0)";
398 } 398 }
399 399
400 function should_apply(q) { 400 function should_apply(q) {
401 test(function() { 401 test(function() {
402 assert_true(query_applies(q)); 402 assert_true(query_applies(q));
403 }, "subtest_" + ++testNum, {assert: q + " should apply"}); 403 }, "subtest_" + ++testNum, {assert: q + " should apply"});
404 } 404 }
405 405
406 function should_not_apply(q) { 406 function should_not_apply(q) {
407 test(function() { 407 test(function() {
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 should_not_apply("(bogus)"); 828 should_not_apply("(bogus)");
829 should_not_apply("not all and (bogus)") 829 should_not_apply("not all and (bogus)")
830 should_not_apply("only all and (bogus)") 830 should_not_apply("only all and (bogus)")
831 831
832 done(); 832 done();
833 } 833 }
834 834
835 </script> 835 </script>
836 </body> 836 </body>
837 </html> 837 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698