aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojo/tests/_base/_loader/hostenv_rhino.js
blob: c121576c17735969760c37bdb818eaf8fcf88812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if(!dojo._hasResource["tests._base._loader.hostenv_rhino"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["tests._base._loader.hostenv_rhino"] = true;
dojo.provide("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);
		}
	]
);

}