blob: 02a8c5286999cc35f432656b0d757ee3d939b3bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
function test () {
let loader = makeLoader();
let module = Module("./main", gTestPath);
let require = Require(loader, module);
// sdk/util/uuid uses Cc, Ci, components
const { uuid } = require("sdk/util/uuid");
ok(isUUID(uuid()), "chrome.Cc and chrome.Ci works in SDK includes");
let uuidString = '00001111-2222-3333-4444-555566667777';
let parsed = uuid(uuidString);
is(parsed, '{' + uuidString + '}', "chrome.components works in SDK includes");
// sdk/base64 uses Cu
const { encode } = require("sdk/base64");
is(encode("hello"), "aGVsbG8=", "chrome.Cu works in SDK includes");
finish();
}
|