tor-browser

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

test_object_attributes_reflection.html (2330B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test for HTMLObjectElement attributes reflection</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <script type="application/javascript" src="reflect.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8 </head>
      9 <body>
     10 <p id="display"></p>
     11 <div id="content" style="display: none">
     12 </div>
     13 <pre id="test">
     14 <script type="application/javascript">
     15 
     16 /** Test for HTMLObjectElement attributes reflection */
     17 
     18 // .data (URL)
     19 reflectURL({
     20  element: document.createElement("object"),
     21  attribute: "data",
     22 });
     23 
     24 // .type (String)
     25 reflectString({
     26  element: document.createElement("object"),
     27  attribute: "type",
     28 });
     29 
     30 // .name (String)
     31 reflectString({
     32  element: document.createElement("object"),
     33  attribute: "name",
     34 });
     35 
     36 // .useMap (String)
     37 reflectString({
     38  element: document.createElement("object"),
     39  attribute: "useMap",
     40 });
     41 
     42 // .width (String)
     43 reflectString({
     44  element: document.createElement("object"),
     45  attribute: "width",
     46 });
     47 
     48 // .height (String)
     49 reflectString({
     50  element: document.createElement("object"),
     51  attribute: "height",
     52 });
     53 
     54 // .align (String)
     55 reflectString({
     56  element: document.createElement("object"),
     57  attribute: "align",
     58 });
     59 
     60 // .archive (String)
     61 reflectString({
     62  element: document.createElement("object"),
     63  attribute: "archive",
     64 });
     65 
     66 // .code (String)
     67 reflectString({
     68  element: document.createElement("object"),
     69  attribute: "code",
     70 });
     71 
     72 // .declare (String)
     73 reflectBoolean({
     74  element: document.createElement("object"),
     75  attribute: "declare",
     76 });
     77 
     78 // .hspace (unsigned int)
     79 reflectUnsignedInt({
     80  element: document.createElement("object"),
     81  attribute: "hspace",
     82 });
     83 
     84 // .standby (String)
     85 reflectString({
     86  element: document.createElement("object"),
     87  attribute: "standby",
     88 });
     89 
     90 // .vspace (unsigned int)
     91 reflectUnsignedInt({
     92  element: document.createElement("object"),
     93  attribute: "vspace",
     94 });
     95 
     96 // .codeBase (URL)
     97 reflectURL({
     98  element: document.createElement("object"),
     99  attribute: "codeBase",
    100 });
    101 
    102 // .codeType (String)
    103 reflectString({
    104  element: document.createElement("object"),
    105  attribute: "codeType",
    106 });
    107 
    108 // .border (String)
    109 reflectString({
    110  element: document.createElement("object"),
    111  attribute: "border",
    112  extendedAttributes: { TreatNullAs: "EmptyString" },
    113 });
    114 </script>
    115 </pre>
    116 </body>
    117 </html>