From 37fdf3a7cab1afbbe769aac64ce39f443355bbf1 Mon Sep 17 00:00:00 2001 From: John Bender Date: Tue, 20 Dec 2011 17:08:02 -0800 Subject: [PATCH] added note to test helper --- tests/jquery.testHelper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/jquery.testHelper.js b/tests/jquery.testHelper.js index e54b13ff..40cfb752 100644 --- a/tests/jquery.testHelper.js +++ b/tests/jquery.testHelper.js @@ -12,6 +12,10 @@ return; } + // if the file has a dot in the name its most likely a lib file + // so we should grab it from the js directory. This could be regarded + // as overeager convention ... don't care its a test helper and the + // failure will be obvious if it happens (eg "can't load this file") require({ baseUrl: (seq[i][0].indexOf(".") > -1) ? "../../../js" : location.pathname });