main.js 585 B

1234567891011121314151617181920
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const self = require("sdk/self");
  6. exports["test self.data.load"] = assert => {
  7. assert.equal(self.data.load("data.md"),
  8. "# hello world\n",
  9. "paths work");
  10. assert.equal(self.data.load("./data.md"),
  11. "# hello world\n",
  12. "relative paths work");
  13. };
  14. require("sdk/test/runner").runTestsFromModule(module);