tor-browser

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

test-001.html (947B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>Shadow DOM Test: A_10_02_02_01</title>
      5 <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
      6 <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#shadow-aware-methods">
      7 <meta name="assert" content="Extensions to Element Interface: attachShadow method creates new instance of Shadow root object">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="../../../../../html/resources/common.js"></script>
     11 </head>
     12 <body>
     13 <div id="log"></div>
     14 <script>
     15 test(function () {
     16 
     17    var d = newHTMLDocument();
     18 
     19    var host = d.createElement('div');
     20    d.body.appendChild(host);
     21 
     22    var s = host.attachShadow({mode: 'open'});
     23 
     24    assert_true(s instanceof ShadowRoot, 'attachShadow() method should create new instance ' +
     25            'of ShadowRoot object');
     26 
     27 }, 'A_10_02_02_01_T01');
     28 </script>
     29 </body>
     30 </html>