tor-browser

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

test_packet.js (522B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 "use strict";
      4 
      5 const {
      6  JSONPacket,
      7  BulkPacket,
      8 } = require("resource://devtools/shared/transport/packets.js");
      9 
     10 function run_test() {
     11  add_test(test_packet_done);
     12  run_next_test();
     13 }
     14 
     15 // Ensure done can be checked without getting an error
     16 function test_packet_done() {
     17  const json = new JSONPacket();
     18  Assert.ok(!json.done);
     19 
     20  const bulk = new BulkPacket();
     21  Assert.ok(!bulk.done);
     22 
     23  run_next_test();
     24 }