Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
if(!dojo._hasResource["tests._base._loader.hostenv_rhino"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2
dojo._hasResource["tests._base._loader.hostenv_rhino"] = true;
3
dojo.provide("tests._base._loader.hostenv_rhino");
4
 
5
tests.register("tests._base._loader.hostenv_rhino",
6
	[
7
		function getText(t){
8
			var filePath = dojo.moduleUrl("tests._base._loader", "getText.txt");
9
			var text = (new String(readText(filePath)));
10
			//The Java file read seems to add a line return.
11
			text = text.replace(/[\r\n]+$/, "");
12
			t.assertEqual("dojo._getText() test data", text);
13
		}
14
	]
15
);
16
 
17
}