HaroonBadsha / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Fix dynamically loading YUI modules #380

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a test case that uses YUI library
2. YUI().use('some module', function(Y) { //test code here... } );

If the 'some module' is not added in the jsTestDrive.conf file then the test 
will just ignore the YUI().use statement and carries on to the next statement 
in the test case.

What is the expected output? What do you see instead?

I expect the test case to wait for the YUI loader to load the modules 
dynamically.

Instead, the YUI().use statement in the test case seems to be ignored if the 
modules are loaded asynchronously

What version of the product are you using? On what operating system?

I'm using version 1.3.4.b on Windows 7 Professional 64-bit 

Please provide any additional information below.

If i change the YUI configurator to avoid loading modules dynamically by doing 
the following YUI({bootstrap:false}).use
Then i would have to load all the modules manually in the jsTestDriver.conf 
file which would work if you know all the modules beforehand. But very 
impractical!

Original issue reported on code.google.com by Eyesonl...@gmail.com on 31 May 2012 at 5:18

GoogleCodeExporter commented 8 years ago

Original comment by corbinrs...@gmail.com on 31 May 2012 at 7:38