can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
14 lines (12 loc) • 410 B
JavaScript
dojo.provide("dojo.tests._base._loader.hostenv_rhino");
tests.register("tests._base._loader.hostenv_rhino",
[
function getText(t){
var filePath = dojo.moduleUrl("tests._base._loader", "getText.txt");
var text = (new String(readText(filePath)));
//The Java file read seems to add a line return.
text = text.replace(/[\r\n]+$/, "");
t.assertEqual("dojo._getText() test data", text);
}
]
);