Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=820909 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <meta charset="utf-8"> |
michael@0 | 8 | <title>Test for Bug 820909</title> |
michael@0 | 9 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 11 | </head> |
michael@0 | 12 | <body> |
michael@0 | 13 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=820909">Mozilla Bug 820909</a> |
michael@0 | 14 | <p id="display"></p> |
michael@0 | 15 | <div id="content" style="display: none"> |
michael@0 | 16 | <span dİsabled="CAPS"></span> |
michael@0 | 17 | </div> |
michael@0 | 18 | <pre id="test"> |
michael@0 | 19 | <script> |
michael@0 | 20 | var bogusScriptRan = false; |
michael@0 | 21 | </script> |
michael@0 | 22 | <script type="applİcation/javascript"> |
michael@0 | 23 | bogusScriptRan = true; |
michael@0 | 24 | </script> |
michael@0 | 25 | <script type="application/javascript"> |
michael@0 | 26 | |
michael@0 | 27 | /** Test for Bug 820909 **/ |
michael@0 | 28 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 1 |
michael@0 | 29 | ok(!bogusScriptRan, "Script types should be ASCII case-insensitive"); |
michael@0 | 30 | |
michael@0 | 31 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 2 |
michael@0 | 32 | var input = document.createElement("input"); |
michael@0 | 33 | input.type = "radİo"; |
michael@0 | 34 | is(input.type, "text", "Input types should be ASCII case-insensitive"); |
michael@0 | 35 | |
michael@0 | 36 | // XXX Not sure how to test items 3, 4, 5 |
michael@0 | 37 | |
michael@0 | 38 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 6 |
michael@0 | 39 | is(document.querySelector("[dİsabled='caps']"), null, |
michael@0 | 40 | "Checking whether an attribute is case-sensitive for selector-matching " + |
michael@0 | 41 | "purposes should be ASCII case-insensitive on the attr name"); |
michael@0 | 42 | |
michael@0 | 43 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 7 |
michael@0 | 44 | $("content").style.width = "0"; |
michael@0 | 45 | $("content").style.width = "1İn"; |
michael@0 | 46 | is($("content").style.width, "0px", |
michael@0 | 47 | "CSS unit names should be ASCII case-insensitive"); |
michael@0 | 48 | |
michael@0 | 49 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 8 |
michael@0 | 50 | $("content").style.setProperty("animation-name", "a"); |
michael@0 | 51 | $("content").style.setProperty("-moz-anİmation-name", "b"); |
michael@0 | 52 | is($("content").style.animationName, "a", |
michael@0 | 53 | "CSS property aliases should be ASCII case-insensitive"); |
michael@0 | 54 | |
michael@0 | 55 | // XXXbz don't know how to test item 9 |
michael@0 | 56 | |
michael@0 | 57 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 10 |
michael@0 | 58 | $("content").innerHTML = "<table><input type='hİdden'></table>"; |
michael@0 | 59 | is($("content").querySelector("input").parentNode, $("content"), |
michael@0 | 60 | "Inputs that aren't actually type='hidden' should not be allowed as " + |
michael@0 | 61 | "table kids"); |
michael@0 | 62 | |
michael@0 | 63 | // XXXbz add test for item 11? |
michael@0 | 64 | |
michael@0 | 65 | // XXXbz add test for item 12? |
michael@0 | 66 | |
michael@0 | 67 | // Test for https://bugzilla.mozilla.org/show_bug.cgi?id=820909#c7 item 13 |
michael@0 | 68 | $("content").style.setProperty("animation-name", "a"); |
michael@0 | 69 | $("content").style.setProperty("anİmation-name", "b"); |
michael@0 | 70 | is($("content").style.animationName, "a", |
michael@0 | 71 | "CSS property names should be ASCII case-insensitive"); |
michael@0 | 72 | |
michael@0 | 73 | $("content").style.setProperty("display", "none"); |
michael@0 | 74 | $("content").style.setProperty("display", "İnline"); |
michael@0 | 75 | is($("content").style.display, "none", |
michael@0 | 76 | "CSS keywords should be ASCII case-insensitive"); |
michael@0 | 77 | |
michael@0 | 78 | $("content").style.setProperty("color", "white"); |
michael@0 | 79 | $("content").style.setProperty("color", "İndigo"); |
michael@0 | 80 | is($("content").style.color, "white", |
michael@0 | 81 | "CSS color names should be ASCII case-insensitive"); |
michael@0 | 82 | |
michael@0 | 83 | |
michael@0 | 84 | </script> |
michael@0 | 85 | </pre> |
michael@0 | 86 | </body> |
michael@0 | 87 | </html> |