Login Register

what does _testCommon.js do?

Hi,

When leaving out _testCommon.js, in the file dijit/tests/form/test_validate.html, numbertextboxes seem to be displayed with an 'X'. Can somebody explain this to me?

When i use dojox.layout.FloatingPane everything seems to work ok for the pane, except that the input fields aren't displayed well (with an 'X'). But when i use _testCommon.js the input fields seem to be displayed ok, but when the floatingpane is clicked, scrollbars are displayed, which imho, shouldn't be displayed.

So i'm a bit puzzled :).

_testCommon is my doing /

_testCommon is my doing / fault ... I have a ticket to remove it entirely because it teaches our users using the tests as examples a bad example. It is a mechanism for lazy-loading our theme files bases on a query param. It reads ?theme=tundra from the url, adds class="tundra" to the body (an important step), and loads tundra.css

remove _testCommon.js script tag, add class="tundra" to your body tag, and make sure you are loading in tundra.css

I plan to write a big blog after I'm done cleaning up all the tests titled "DONT USE _testCommon"

it will, of course break our ability to test non-tundra themes effectively, but it has been decided as such.

SOLVED: _testCommon is my doing /

Hi,

Thanks for answering.

Now it works.

My underlying problem was that i forgot a directory for tundra.css. /dijit/themes/tundra.css instead of /dijit/themes/tundra/tundra.css :)
I overlooked it in firebug, i should be more careful :)