UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

14 lines (12 loc) 419 B
dojo.provide("dojo.testsDOH._base._loader.hostenv_rhino"); tests.register("testsDOH._base._loader.hostenv_rhino", [ function getText(t){ var filePath = dojo.moduleUrl("testsDOH._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); } ] );