tor-browser

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

test_do_get_tempdir.js (466B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et: */
      3 /* Any copyright is dedicated to the Public Domain.
      4 * http://creativecommons.org/publicdomain/zero/1.0/ */
      5 
      6 /* This tests that do_get_tempdir returns a directory that we can write to. */
      7 
      8 function run_test() {
      9  let tmpd = do_get_tempdir();
     10  Assert.ok(tmpd.exists());
     11  tmpd.append("testfile");
     12  tmpd.create(Ci.nsIFile.NORMAL_FILE_TYPE, 600);
     13  Assert.ok(tmpd.exists());
     14 }