jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r627276 - /incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/tests/etc/selenium/readme.txt
Date Wed, 13 Feb 2008 06:30:11 GMT
Author: ajaquith
Date: Tue Feb 12 22:30:09 2008
New Revision: 627276

URL: http://svn.apache.org/viewvc?rev=627276&view=rev
Log: (empty)

Added:
    incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/tests/etc/selenium/readme.txt

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/tests/etc/selenium/readme.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/tests/etc/selenium/readme.txt?rev=627276&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/tests/etc/selenium/readme.txt (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/tests/etc/selenium/readme.txt Tue Feb
12 22:30:09 2008
@@ -0,0 +1,80 @@
+This file is tests/etc/selenium/tests/readme.txt
+
+Here's a quick start to selenium web unit tests
+
+    * Type 'ant webtests' from the command line
+    
+    * You may find it useful to restart Tomcat before running webtests
+
+	
+ARJ notes 10-Dec-2007:	
+Note: To get Selenium to work, Dirk patched the following two Selenium-core files, which
were re-injected into lib/selenium-server.jar:
+
+core/scripts/htmlutils.js
+
+OLD:
+function triggerEvent(element, eventType, canBubble, controlKeyDown, altKeyDown, shiftKeyDown,
metaKeyDown) {
+    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
+    if (element.fireEvent) {
+
+function triggerKeyEvent(element, eventType, keySequence, canBubble, controlKeyDown, altKeyDown,
shiftKeyDown, metaKeyDown) {
+    var keycode = getKeyCodeFromKeySequence(keySequence);
+    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
+    if (element.fireEvent) {
+ 
+NEW:
+function triggerEvent(element, eventType, canBubble, controlKeyDown, altKeyDown, shiftKeyDown,
metaKeyDown) {
+    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
+
+    //if (element.fireEvent) {  
+    /* support for mootools patch Dirk Frederickx Dec 07*/
+	/* see http://forum.mootools.net/viewtopic.php?id=1639 */
+    if (element.ownerDocument.createEventObject) {
+
+function triggerKeyEvent(element, eventType, keySequence, canBubble, controlKeyDown, altKeyDown,
shiftKeyDown, metaKeyDown) {
+    var keycode = getKeyCodeFromKeySequence(keySequence);
+    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
+
+    //if (element.fireEvent) {  
+    /* support for mootools patch Dirk Frederickx Dec 07*/
+	/* see http://forum.mootools.net/viewtopic.php?id=1639 */
+    if (element.ownerDocument.createEventObject) {
+
+(the last line, "if (element.fireEvent" is what's replaced)
+
+
+core/scripts/selenium-browserbot.js
+
+OLD:
+BrowserBot.prototype.triggerMouseEvent = function(element, eventType, canBubble, clientX,
clientY) {
+    clientX = clientX ? clientX : 0;
+    clientY = clientY ? clientY : 0;
+
+    LOG.debug("triggerMouseEvent assumes setting screenX and screenY to 0 is ok");
+    var screenX = 0;
+    var screenY = 0;
+
+    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
+    if (element.fireEvent) {
+
+NEW:
+BrowserBot.prototype.triggerMouseEvent = function(element, eventType, canBubble, clientX,
clientY) {
+    clientX = clientX ? clientX : 0;
+    clientY = clientY ? clientY : 0;
+
+    LOG.debug("triggerMouseEvent assumes setting screenX and screenY to 0 is ok");
+    var screenX = 0;
+    var screenY = 0;
+
+    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
+    //if (element.fireEvent) {  
+    /* support for mootools patch Dirk Frederickx Dec 07*/
+	/* see http://forum.mootools.net/viewtopic.php?id=1639 */
+    if (element.ownerDocument.createEventObject) {
+
+(the last line, "if (element.fireEvent" is what's replaced)
+
+
+Commands to re-inject these files:
+cd tests/etc/selenium/selenium-core-0.8.3-patches
+jar -uvf ../../../../lib/selenium-server-0.9.2.jar core/scripts/selenium-browserbot.js core/scripts/htmlutils.js




Mime
View raw message