mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
11 lines
405 B
JavaScript
11 lines
405 B
JavaScript
function run_test() {
|
|
var Cu = Components.utils;
|
|
sb = new Cu.Sandbox('http://www.example.com',
|
|
{ wantGlobalProperties: ["atob", "btoa"] });
|
|
sb.do_check_eq = do_check_eq;
|
|
Cu.evalInSandbox('var dummy = "Dummy test.";' +
|
|
'do_check_eq(dummy, atob(btoa(dummy)));' +
|
|
'do_check_eq(btoa("budapest"), "YnVkYXBlc3Q=");',
|
|
sb);
|
|
}
|