Permalink
Browse files

stable 1.2.0.1, added tests to ensure script tags appended to documen…

…t.head are executed. added some safe defaults for use in single threaded environments like GAE, window specs will run without http server, xhr spec still requires it. I'l like to simplify this. will be focusing on completing form submission and link following (ie window level default behaviors if event is not stopped.)
  • Loading branch information...
1 parent 31c9cbe commit 88c570151c507eddb74e87317a1ebd55aa2daee2 thatcher committed Mar 3, 2010
View
@@ -1,7 +1,5 @@
-JAR = java -jar rhino/js.jar
+JAR = java -jar rhino/js.jar -opt -1
test-rhino:
ant -emacs
-run-rhino:
- echo "load('dist/env.rhino.js');window.location='test/index.html';" | ${JAR}
View
@@ -2,7 +2,7 @@
PROJECT: env-js
BUILD_MAJOR: 1
BUILD_MINOR: 2
-BUILD_ID: 0.0
+BUILD_ID: 0.1
BUILD_VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
BUILD: ${PROJECT}.${BUILD_VERSION}
VERSION: ${BUILD} ${DSTAMP}
View
@@ -7,7 +7,7 @@ var CSS2Properties,
CSSStyleSheet;
/*
- * Envjs css.1.2.0.0
+ * Envjs css.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
View
@@ -1,5 +1,5 @@
/*
- * Envjs dom.1.2.0.0
+ * Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -39,7 +39,7 @@ var Attr,
/*
- * Envjs dom.1.2.0.0
+ * Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
View
@@ -1,5 +1,5 @@
/*
- * Envjs core-env.1.2.0.0
+ * Envjs core-env.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -37,12 +37,12 @@ __this__ = this;
Envjs.appCodeName = "Envjs";
//eg "Gecko/20070309 Firefox/2.0.0.3"
-Envjs.appName = "Resig/20070309 PilotFish/1.2.0.0";
+Envjs.appName = "Resig/20070309 PilotFish/1.2.0.1";
Envjs.version = "1.6";//?
/*
- * Envjs core-env.1.2.0.0
+ * Envjs core-env.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -592,7 +592,7 @@ function appendNode(node, html)
})();
/*
- * Envjs dom.1.2.0.0
+ * Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -632,7 +632,7 @@ var Attr,
/*
- * Envjs dom.1.2.0.0
+ * Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -3787,7 +3787,7 @@ __extend__(XMLSerializer.prototype, {
})();
/*
- * Envjs event.1.2.0.0
+ * Envjs event.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -3807,7 +3807,7 @@ var Event,
//among other things like general profiling
Aspect;
/*
- * Envjs event.1.2.0.0
+ * Envjs event.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -4632,7 +4632,7 @@ EventException.UNSPECIFIED_EVENT_TYPE_ERR = 0;
})();
/*
- * Envjs timer.1.2.0.0
+ * Envjs timer.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -4648,7 +4648,7 @@ var setTimeout,
clearInterval;
/*
- * Envjs timer.1.2.0.0
+ * Envjs timer.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -4898,7 +4898,7 @@ Envjs.wait = function(wait) {
})();
/*
- * Envjs html.1.2.0.0
+ * Envjs html.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -4948,7 +4948,7 @@ var HTMLDocument,
HTMLUnknownElement;
/*
- * Envjs html.1.2.0.0
+ * Envjs html.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -8042,7 +8042,7 @@ var CSS2Properties,
CSSStyleSheet;
/*
- * Envjs css.1.2.0.0
+ * Envjs css.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -8517,7 +8517,7 @@ var XMLParser = {},
/*
- * Envjs parser.1.2.0.0
+ * Envjs parser.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -9316,6 +9316,7 @@ var __elementPopped__ = function(ns, name, node){
}
break;
case 'html':
+ //console.log('html popped');
doc.parsing = false;
//DOMContentLoaded event
if(doc.createEvent){
@@ -9380,7 +9381,7 @@ __extend__(HTMLElement.prototype,{
})();
/*
- * Envjs xhr.1.2.0.0
+ * Envjs xhr.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -9395,7 +9396,7 @@ var Location,
XMLHttpRequest;
/*
- * Envjs xhr.1.2.0.0
+ * Envjs xhr.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
@@ -9969,6 +9970,9 @@ var __exchangeHTMLDocument__ = function(doc, text, url){
Envjs.wait();
}catch(e){
console.log('parsererror %s', e);
+ try{
+ console.log('document \n %s', doc.documentElement.outerHTML);
+ }catch(ee){}
doc = new HTMLDocument(new DOMImplementation(), doc.ownerWindow);
html = doc.createElement('html');
head = doc.createElement('head');
@@ -9980,6 +9984,7 @@ var __exchangeHTMLDocument__ = function(doc, text, url){
html.appendChild(head);
html.appendChild(body);
doc.appendChild(html);
+ //console.log('default error document \n %s', doc.documentElement.outerHTML);
//DOMContentLoaded event
if(doc.createEvent){
@@ -10009,8 +10014,6 @@ var __exchangeHTMLDocument__ = function(doc, text, url){
}
}
};
-
-
/**
*
* @class XMLHttpRequest
@@ -10157,7 +10160,7 @@ var Window,
/*
- * Envjs window.1.2.0.0
+ * Envjs window.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Oops, something went wrong.

0 comments on commit 88c5701

Please sign in to comment.