tor-browser

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

headers-structure.any.js (536B)


      1 // META: title=Headers basic
      2 // META: global=window,worker
      3 
      4 "use strict";
      5 
      6 var headers = new Headers();
      7 var methods = ["append",
      8                "delete",
      9                "get",
     10                "has",
     11                "set",
     12                //Headers is iterable
     13                "entries",
     14                "keys",
     15                "values"
     16                ];
     17 for (var idx in methods)
     18  test(function() {
     19    assert_true(methods[idx] in headers, "headers has " + methods[idx] + " method");
     20  }, "Headers has " + methods[idx] + " method");