tor-browser

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

measure_syntax_err.any.js (1503B)


      1 test(function () {
      2   self.performance.mark("existing_mark");
      3   var entries = self.performance.getEntriesByName("existing_mark");
      4   assert_equals(entries.length, 1);
      5   self.performance.measure("measure", "existing_mark");
      6 }, "Create a mark \"existing_mark\"");
      7 test(function () {
      8   assert_throws_dom("SyntaxError", function () {
      9       self.performance.measure("measure", "mark");
     10   });
     11 }, "self.performance.measure(\"measure\", \"mark\"), where \"mark\" is a non-existent mark, " +
     12                          "throws a SyntaxError exception.");
     13 
     14 test(function () {
     15   assert_throws_dom("SyntaxError", function () {
     16       self.performance.measure("measure", "mark", "existing_mark");
     17   });
     18 }, "self.performance.measure(\"measure\", \"mark\", \"existing_mark\"), where \"mark\" is a " +
     19                          "non-existent mark, throws a SyntaxError exception.");
     20 
     21 test(function () {
     22   assert_throws_dom("SyntaxError", function () {
     23       self.performance.measure("measure", "existing_mark", "mark");
     24   });
     25 }, "self.performance.measure(\"measure\", \"existing_mark\", \"mark\"), where \"mark\" " +
     26                            "is a non-existent mark, throws a SyntaxError exception.");
     27 
     28 test(function () {
     29   assert_throws_dom("SyntaxError", function () {
     30       self.performance.measure("measure", "mark", "mark");
     31   });
     32 }, "self.performance.measure(\"measure\", \"mark\", \"mark\"), where \"mark\" is a " +
     33                          "non-existent mark, throws a SyntaxError exception.");