diff --git a/build.xml b/build.xml index fbc608e3..029f85ea 100644 --- a/build.xml +++ b/build.xml @@ -657,7 +657,7 @@ the concatenated-into-a-single-file version of env.js. --> @@ -674,7 +674,7 @@ @@ -690,7 +690,24 @@ + + + + + + + + + + + + + + + + + Envjs Parser Spec + + + + + + + + + + +

+ + Envjs Parser Spec +

+

+

+
+
+
    +
    + + + diff --git a/specs/fulldoc/spec.js b/specs/fulldoc/spec.js new file mode 100644 index 00000000..b4b26bd8 --- /dev/null +++ b/specs/fulldoc/spec.js @@ -0,0 +1,46 @@ +QUnit.module('integration'); + +/** + * This is very different from the other tests in that the "work" + * in done, //outside// of a test(). The test() just check the + * final results. This is needed since the tests must run in + * tag of the main document. + */ + +var isenvjs; +try { + isenvjs = runningUnderEnvjs(); +} catch (e) { + isenvjs= false; +} +/** + * If a script in running in , then document.body === null + * + * Due to frame scoping rules, we have indirectly make the test. + * What we are really doing is this: + * + */ +document.bodyinhead = document.body; + +/** + * in + * Create a new