tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug742549.html (1339B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=742549
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 742549</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <script type="application/javascript" src="reflect.js"></script>
     11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     12 </head>
     13 <body>
     14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=742549">Mozilla Bug 742549</a>
     15 <p id="display"></p>
     16 <div id="content" style="display: none">
     17  
     18 </div>
     19 <pre id="test">
     20 <script type="application/javascript">
     21 
     22 /** Test for Bug 742549 */
     23 var els = [ document.createElement("script"),
     24            document.createElementNS("http://www.w3.org/2000/svg", "script") ]
     25 
     26 for (var i = 0; i < els.length; ++i) {
     27  reflectLimitedEnumerated({
     28    element: els[i],
     29    attribute: { content: "crossorigin", idl: "crossOrigin" },
     30    // "" is a valid value per spec, but gets mapped to the "anonymous" state,
     31    // just like invalid values, so just list it under invalidValues
     32    validValues: [ "anonymous", "use-credentials" ],
     33    invalidValues: [
     34      "", "  aNOnYmous   ", "  UsE-CreDEntIALS  ", "foobar", "FOOBAR", " fOoBaR  "
     35    ],
     36    defaultValue: { invalid: "anonymous", missing: null },
     37    nullable: true,
     38  })
     39 }
     40 
     41 
     42 
     43 
     44 </script>
     45 </pre>
     46 </body>
     47 </html>